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

Add support for fallback locale #91

Merged
merged 4 commits into from
Oct 30, 2018

Conversation

jhaenchen
Copy link
Contributor

We ran into a situation where we had locale information for one locale but not the other. We would like to be able to specify a default locale to fall back to if a key is not found in the current locale. This PR adds such an option as fallbackLocale. This is particularly useful from a dev perspective since the dominant language of the devs will almost always have all the strings.

Copy link

@djpereira djpereira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good!

@cwtuan
Copy link
Collaborator

cwtuan commented Oct 23, 2018

@jhaenchen
Please also add this option to typescript definition and add test cases.

@jhaenchen
Copy link
Contributor Author

@cwtuan Done, thanks!

@jhaenchen
Copy link
Contributor Author

@cwtuan Think we're ready for merge!

@cwtuan cwtuan merged commit 3faacba into alibaba:master Oct 30, 2018
@cwtuan
Copy link
Collaborator

cwtuan commented Oct 30, 2018

@jhaenchen
Released in v1.15.0.

@jhaenchen
Copy link
Contributor Author

Thanks @cwtuan !

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

Successfully merging this pull request may close these issues.

3 participants