#deploy mutliple local

6 messages · Page 1 of 1 (latest)

valid tiger
#

Hello,
I'm building a website that is deploying multiple locales, and I want to get the locale with LOCAL_ID token.
However the token is always set to us-EN

It was working with Webpack, but now that i'm using esbuild, it's not working anymore.

I'm following the documentation : https://angular.dev/guide/i18n/deploy but the documentation has not been updated

I don't know if it's a bug with esbuild or I need to change my configuration or something else.

Have someone already build a website with multiple locale on esbuild?

The web development framework for building modern apps.

honest heath
#

Could you post your angular.json?

valid tiger
#
  "i18n": {
    "sourceLocale": "en-NL",
    "locales": {
      "fr-BE": {
        "translation": ["locale/translations.fr.xlf"],
        "baseHref": "fr/"
      },
      "nl-BE": {
        "translation": ["locale/translations.nl.xlf"],
        "baseHref": "nl/"
      },
      "en-BE": {
        "translation": ["locale/translations.en.xlf"],
        "baseHref": "en/"
      }
    }
  },
#

But I made a small reproduction and it's working fine. So I need to figure out for it's differente inside my project.

honest heath
#

It would be better to show it in full.
This part misses the fundamental localize option, just to say one.

valid tiger
#

@honest heath thanks for helping. the localize option is not the issue. the site is well deployed into multiple locales. it's just the LOCALE_ID which is not set.
but it was a bug from the framework and it was corrected in 17.0.6
I had to update my application and everything is fine now.