Translation of search facets
See original GitHub issueI am not really sure whether or not this is a bug or feature request. But for our clients localization is really a big thing. Literally everything must be in Dutch.
Type of issue: (check with “[x]”)
- New feature request
- Bug
- Support request
- Documentation
Current behaviour:
The search filter component has the option to set some of the labels in the app.config.json
. Only the ones on the top level are being translated. The rest is not. Also titles like “Facet Queries” cannot be translated. (https://github.com/Alfresco/alfresco-ng2-components/blob/master/lib/content-services/search/components/search-filter/search-filter.component.html#L22)
I am having config like this:
{
"id": "queryType",
"name": "SEARCH.TYPE.LABEL",
"enabled": true,
"expanded": false,
"component": {
"selector": "adf-search-radio",
"settings": {
"field": null,
"options": [
{
"name": "SEARCH.TYPE.OPTIONS.NONE",
"value": "",
"default": true
},
{
"name": "SEARCH.TYPE.OPTIONS.ALL",
"value": "TYPE:'cm:folder' OR TYPE:'cm:content'"
},
{
"name": "SEARCH.TYPE.OPTIONS.FOLDER",
"value": "TYPE:'cm:folder'"
},
{
"name": "SEARCH.TYPE.OPTIONS.DOCUMENT",
"value": "TYPE:'cm:content'"
}
]
}
}
},
Which results in this:
Expected behavior: Expected that all labels could be translated.
Steps to reproduce the issue: Implement i18n and search facets. Copy the config from above and it will result in the same.
Component name and version: search-module and all its child components.
Browser and version: all
Node version (for build issues):
v9.4.0
New feature request:
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
Thanks for pointing out. We are working on the full i18n support for faceted search widgets at the moment. I will ensure check/radio lists support that.
It is definitely a bug for radio widget. But we will review entire i18n support for the next release. Everything is going to be translatable.