Localization for "pt-BR" or "ar-AE" don't work

Hello

I am trying to localize the DocumentEditor to pt-BR but it does not work. If I try to localize to "de" it DOES work

seems that any language that has the "-" in the name does not work, I tried "ar-AE" and it does not work either.

Here is my code 

import './App.css'
import React from 'react';

// import * as EJ2_LOCALE from "../node_modules/@syncfusion/ej2-locale/src/pt-BR.json";
import * as EJ2_LOCALE from "../node_modules/@syncfusion/ej2-locale/src/ar-AE.json";
import { L10n, setCulture } from '@syncfusion/ej2-base';

import {
DocumentEditorContainerComponent,
Toolbar,
Inject,
} from '@syncfusion/ej2-react-documenteditor';


L10n.load({ 'ar-AE': EJ2_LOCALE['ar-AE'] });
setCulture("ar-AE");

function App() {
return (
<div className='App'>
<DocumentEditorContainerComponent height='640px'
locale={'ar-AE'}>
<Inject services={[Toolbar]} />
</DocumentEditorContainerComponent>
</div>
);
}
export default App


Thanks 


3 Replies 1 reply marked as answer

RT Ragu Thanigasalam Syncfusion Team May 17, 2024 07:31 AM UTC

Hi Cesar,

Currently we are checking this issue and we will update the details by May 17, 2024.


Regards,
Ragu T.



RT Ragu Thanigasalam Syncfusion Team May 17, 2024 09:29 AM UTC

Cesar,
We have prepared a sample for your reference. Please find a below sample and let us know if the sample meets your requirements.


     Regards,

    Ragu T.


Attachment: syncfusiondocumenteditorcrastyleslanguage_1463b4b4.zip

Marked as answer

BO Bonadio May 17, 2024 03:19 PM UTC

Hi Ragu

Thanks for the reply. 

I was able to adapt your example to use "pt-BR"

Thank you

 


Loader.
Up arrow icon