UI Localization | Umbraco CMS
# package-development
a
Anyone who can shed some light on how Umbraco 14 handles localization and fallbacks? According to the documentation, there should be a fallback for
en-US
, but this is not what I'm seeing in my 14.1 site. https://docs.umbraco.com/umbraco-cms/extending/language-files/ui-localization#missing-localization-keys My entry point looks like this:
Copy code
js
export const onInit = (_host, extensionRegistry) => {

    extensionRegistry.register({
        "type": "localization",
        "alias": "Limbo.EnUS",
        "name": "English (United States)",
        "js": () => import('./en-US.js'),
        "meta": {
            "culture": "en-US"
        }
    });

    extensionRegistry.register({
        "type": "localization",
        "alias": "Limbo.DaDk",
        "name": "Danish (Denmark)",
        "js": () => import('./da-DK.js'),
        "meta": {
            "culture": "da-DK"
        }
    });

};
j
The fallback is "en", the documentation is wrong I see
a
Thanks. I couldn't figure out why this wasn't working.
Does this also apply to the old XML based language files, or is the fallback here still
en-US
?
j
to my knowledge, we didn't change anything there, so if it was en-US before, it should still be 🙂
...and thanks for noticing that the docs were wrong. I have created a PR to correct it: https://github.com/umbraco/UmbracoDocs/pull/6292