Hello!
I have a lot of custom pages with information with hard-coded language but now i need to add translations.
Because i have a custom pages those pages do not belong to any scope so i have tried this step:
1. I created a custom json file in custom/Espo/Custom/Resources/i18n/pl_PL/CustomStat.json with body you can see on screenshot
2. And in JS i tried: this.getLanguage().translate('someField', 'fields', 'CustomStat') but this return me 'someField' but in JSON it 'someFieldValue' so i want to return 'someFieldValue'
How i can do that? Thanks for any replies.
I have a lot of custom pages with information with hard-coded language but now i need to add translations.
Because i have a custom pages those pages do not belong to any scope so i have tried this step:
1. I created a custom json file in custom/Espo/Custom/Resources/i18n/pl_PL/CustomStat.json with body you can see on screenshot
2. And in JS i tried: this.getLanguage().translate('someField', 'fields', 'CustomStat') but this return me 'someField' but in JSON it 'someFieldValue' so i want to return 'someFieldValue'
How i can do that? Thanks for any replies.
Comment