tinymce / tinymce-angular

Official TinyMCE Angular Component
MIT License
324 stars 93 forks source link

localization not working in tinymce-angular #198

Closed snowchenlei closed 3 years ago

snowchenlei commented 3 years ago
<editor
            [init]="{
              height: 500,
              language_url: '/assets/tinymce/langs/zh_CN.js',
              language: 'zh-CN'
            }"
          ></editor>

But it's still in English. NetWork also Loaded this zh_CN.js. image image

jscasca commented 3 years ago

Hi @snowchenlei

You have a typo in your language selection, the correct value is zh_CN. You can find additional information in this page: https://www.tiny.cloud/docs/configure/localization/#exampleusinglanguage

Additionally, if you are not using a custom language pack you don't need to specify the language_url value. You can see an exmaple here: https://codesandbox.io/s/tinymceangular-forked-g1iel?file=/src/app/app.component.html