You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
From the 0.165.0 version (this commit) is not working i18n localization files loading.
My localization file is placed in packages/editor-ui/src/plugins/i18n/locales directory as well.
With the same environment and settings a localization loading is working in previous n8n versions (0.164.0 and lower) Link to my comment from PR with my investigations.
I fixed it.
This is due to the fact that NodeView.vue has not yet been initialized at the time of language installation. So watch defaultLocale is never called.
I just added a function call loadLanguage to mounted method:
asyncmounted(){
...
try{awaitPromise.all(loadPromises);if(this.defaultLocale!=='en'){try{loadLanguage(this.defaultLocale);// <= Here is what I addedconstheaders=awaitthis.restApi().getNodeTranslationHeaders();addHeaders(headers,this.defaultLocale);}catch(_){// no headers available}}}catch(error){
...
}
Describe the bug
From the 0.165.0 version (this commit) is not working i18n localization files loading.
My localization file is placed in
packages/editor-ui/src/plugins/i18n/locales
directory as well.With the same environment and settings a localization loading is working in previous n8n versions (0.164.0 and lower)
Link to my comment from PR with my investigations.
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/n8n-io/n8n.git
lerna bootstrap --hoist
packages/editor-ui/src/plugins/i18n/locales
N8N_DEFAULT_LOCALE=ja
to envnpm run build
npm run start
Expected behavior
n8n editor ui with settled language.
Environment:
The text was updated successfully, but these errors were encountered: