Skip to content

Support locale without country code. #63

@palexs

Description

@palexs

I'm wondering how can I use the plugin and ignore the country code? The idea is that in my app I want to support let's say Russian language. The locale would be ru-RU, but if a user is located in Ukraine his or her locale would be ru-UA meaning that I'll have to add another json (ru-UA.json) and copy all the contents from ru-RU.json which leads to code duplication. This might easily get even more ugly, if I wanted to account for Belarus and add another locale - ru-BY.json and copy the same strings once again. Is there a way to just specify language code (e.g. ru.json) and call it a day ignoring country code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions