Netlify-cms: Login/Auth screen not being translated by Locale

Created on 31 Aug 2020  路  5Comments  路  Source: netlify/netlify-cms

Describe the bug
I changed the locale in my config.yml file but the translation didn't reflect in my Auth/Login screen. After logging in, many labels were translated, so, I presumed the configuration didn't work correctly.

To Reproduce

  1. Configure an index.html file in the /admin directory, following the CMS doc instructions.
  2. Change the config.yml file inserting locale: 'pt'
  3. Access the website/admin domain
  4. See that the language has not changed on the login screen:

image

  1. Log in and see that the language has been updated internally, but some labels (like 'Sort by') have not been translated:

image

Additional context

I noticed the command NetlifyCms.getLocale('pt') in the browser console didn't brought the "auth" object that was expected:

image

Applicable Versions:

  • Netlify CMS version: 2.10.55
  • Git provider: GitHub
  • OS: Windows 10
  • Browser version: Firefox Developer 80


i18n not a bug

All 5 comments

Hi @gabrielalg, those missing translations were added in https://github.com/netlify/netlify-cms/pull/4173 and released in 2.10.56
https://github.com/netlify/netlify-cms/compare/[email protected]@2.10.56

Please try with the latest version. Closing this - please comment if updating to the latest version doesn't solve this

Hi @erezrokah ! I'm using the CDN link to access the cms (https://unpkg.com/[email protected]/dist/netlify-cms.js) but I can't find the 2.10.56 version. I've tried to find it in npmjs but it wasn't there too. Can you help me with the published link for this new version, pls 馃檹?

Oh, looks like there is an issue with that release as it is not on npm:
https://www.npmjs.com/package/netlify-cms

Working on getting a new one released

Sorry for the late follow up, 2.10.56 should be available now on npm

Hi @erezrokah ! It worked! 馃帀 Thank you very much!

Was this page helpful?
0 / 5 - 0 ratings