Can I get entire i18n labels of specific dictionary

后端 未结 4 1099
耶瑟儿~
耶瑟儿~ 2021-01-15 07:42

I am facing an issue with i18n labels.

My application reads few i18n labels at js frontend using Granite.I18n.get(\'\') function. The entire dictionary gets downloa

4条回答
  •  旧时难觅i
    2021-01-15 08:24

    here is an answer that could help you when you are trying to get a specific dictionary: https://stackoverflow.com/a/55656153/14465431

    look at the part where is mention the sling:basename

    this also works for one site

    example:

    [sling:Language] > mix:language
    mixin
    - sling:basename (string)
    - sling:basename (string) multiple
    
    

    http://localhost:4502/libs/cq/i18n/dict.es.[sling:basename-value].json

    OTB solution :)

提交回复
热议问题