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
Unify i18n logic in the various Craft apps #32375
Conversation
…, since they are all ultimately using the same locale file
To make sure I understand — this de-dups the localization across the four Craft variants, and merges all the strings into one file? Did you programmatically build the superset or create it by hand? |
apps/test/unit/craft/i18nTest.js
Outdated
@@ -0,0 +1,30 @@ | |||
import {assert} from '../../util/deprecatedChai'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason not to use reconfiguredChai
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no idea! I was just copying what's in the existing craftTest
precisely!
Bit of both; I copied all objects into one, sorted the keys by name, and deleted duplicates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Follow-up to #32136
Right now, all the Craft apps share the same i18n file, but each one also references that file independently and reimplements a bunch of shared logic around i18n. This change brings all shared i18n code up one level to be used by all Craft apps equally.
Links
Reviewer Checklist: