Skip to content

i18n implementation query #5553

@nickmarkfurness

Description

@nickmarkfurness

Package

v4.x

Description

I can see and understand how to implement the nuxt.ui i18n locales and able to switch between them.

However ... there is only support for the iso standard languages like --> en

I want to be able to have en-GB and en-US or other language variants for other languages (if they exist, English was just a good first example)

How do I have my own and still be able to support the built in locales. for NuxtUI For example, if i used en-GB or en-US then the 'en' locale be used for NuxtUI?
Preferably I would like my own folder called locales with my own locale files in there and they be dynamically loaded. I would prefer to stay away from the config file for this as it could get pretty huge.

If i extend an existing locale and add the two examples above, will this break the internal locale for nuxtui? Or does the code to a copy of the en locale for each and then add my own implementation on top so when i choose en-GB it still has all the labels from the en locale ??

I hope i have explained that well enough 🙈

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedv4#4488

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions