We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
5.24.1
If creating en-US as an extension of en, via extendDictionary, the locale switcher is not switching between en and en-US:
en-US
en
extendDictionary
Use the svelteKit example app (https://github.com/ivanhofer/typesafe-i18n-demo-sveltekit) and update all dependencies (ncu -u) and add en-US:
ncu -u
No response
The text was updated successfully, but these errors were encountered:
My bad. I assumed lodash.merge works in an immutable way. But instead it alters the orginal object. I will need to find a replacement for this line: https://github.com/ivanhofer/typesafe-i18n/blob/main/packages/utils/src/extendDictionary.mts#L24
Sorry, something went wrong.
It seems merge({}, obj1, obj2) is the solution.
merge({}, obj1, obj2)
97b3225
Should be fixed in version 5.24.2. Thanks for reporting this issue.
5.24.2
Thanks for the quick fix!
No branches or pull requests
Version
5.24.1
Describe the bug
If creating
en-US
as an extension ofen
, viaextendDictionary
, the locale switcher is not switching betweenen
anden-US
:simplescreenrecorder-2023-03-01_20.19.03.mp4
Reproduction
Use the svelteKit example app (https://github.com/ivanhofer/typesafe-i18n-demo-sveltekit) and update all dependencies (
ncu -u
) and add en-US:Logs
No response
Config
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: