Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin UI localization not working correctly for locales with country suffix #3993

Open
waldemar-p opened this issue Jan 11, 2023 · 0 comments
Assignees
Labels

Comments

@waldemar-p
Copy link
Contributor

To Reproduce

1a. Without Assembly create a localization with

// sites/modules/@apostrophecms/i18n/index.js
module.exports = {
  options: {
    locales: {
      en: {
        label: "English",
        // The default locale since there is no prefix requirement.
      },
      "de-de": {
        label: "German",
        prefix: "/de-de",
      },
      de: {
        label: "German",
        prefix: "/de",
      },
    },
  },
};

1b. With Assembly simply create the two "German" locales via the UI.

  1. Now simply log into your apostrophe site to see the admin UI. You should see the german version for "de" but for "de-de" it seems to be English, even though the localization for the template content is working fine.

Expected behavior

German version of the admin UI for "de" and for "de-de"

Describe the bug

It seems that the admin UI is translated differently than the template content. That leads to the bug, that only "de" has a german admin UI and "de-de" is English.

Details

Version of Node.js:
14.18.0

Server Operating System:
MacOS X

Screenshots
7a7117359d6fa74dfe86e789facfcf2e036500bb3a39275ea8042eeebb86922e

a74de784f09c47c4fb3d9b1e60ab40401cf26e660a84822c5d5b27fecfb889fb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants