question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Translation of search facets

See original GitHub issue

I 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: image

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:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
DenysVuikacommented, May 4, 2018

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.

0reactions
DenysVuikacommented, May 4, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Faceted search - Wikipedia
Faceted search is a technique that involves augmenting traditional search techniques with a faceted navigation system, allowing users to narrow down search ...
Read more >
Translation of Faceted Search Widget in Employee Center
I am trying to translate the texts in the Search Widget of Employee Center to Danish. But I can't seem to find how...
Read more >
What is faceted search and navigation? | Knowledge Base
Faceted search, also known as guided navigation or faceted navigation, is a way to add specific, relevant options to your results pages so...
Read more >
What is Faceted Search? - AddSearch Blog
Faceted search uses product or content features as criteria for a website visitor to refine their search results. Your user will get specific ......
Read more >
Faceted Search: An Overview - Algolia
What is faceted search? ... Facets, also called smart filters, are a type of search filter that customers use to narrow down their...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found