Translate all components

Hello from VBS in Brazil.

Is there a way to translate all syncfusion components, localization and internationalization, to pt-BR?

I looked up on the documentation but it only shows for an specific component and without translation files. 

In regular JS/ES6.

3 Replies

BS Banupriya Selvaraj Syncfusion Team March 10, 2020 12:36 PM UTC

Hi André,  

Currently, We have included most commonly used translation files in the ej2-locale repo for all our Syncfusion Components. You can also use the ej2-locale npm package to use the local files in your application. We slao have the translation file for ‘pt’ culture for all our Syncfusion components in our ej2-locale repo. Please refer to the below link. 

We have also prepared a sample for your reference. Please find the sample link below. 

Please refer the below documentations to know more about localization and internationalization.  

Please let us know if you need any assistance with this.  
  
Regards,  
Banupriya 



AF André Freitas Franchi March 12, 2020 04:02 PM UTC

Thank you. 
But I ended up getting it before. 
I installed ej2-locale with npm and them just updated my tsconfig to allow json with: 

    "resolveJsonModule"true,

And then in my main ts file, the one with all the base imports, I just:
Worked like a charm


import { L10nsetCulture } from '@syncfusion/ej2-base';
import { pt } from '@syncfusion/ej2-locale/src/pt.json';
setCulture('pt');
L10n.load({
   'pt': pt
});


BS Banupriya Selvaraj Syncfusion Team March 13, 2020 03:24 AM UTC

Hi André, 

We are glad to hear that your issue was resolved. Please let us know if you have any concerns. 

Regards, 
Banupriya 


Loader.
Up arrow icon