Standardize/simplify the localize code #2431
Unanswered
rajkeshwar
asked this question in
Show and tell
Replies: 1 comment 1 reply
-
As a first step, to keep the code the same but get rid of the verbosity, we plan to move all localize logic to a specific file localizeNamespaceLoader.js. So that we only have a little bit of code left in each component: static localizeNamespaces = [
{ 'lion-input-tel': localizeNamespaceLoader },
...super.localizeNamespaces,
]; Is this something you could help us with @rajkeshwar. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently submitted a PR that introduces a utility method for resolving the supplied locale and its fallback. However, as @tlouisse explained, the current verbosity in the code serves a purpose, and the team is considering standardizing or simplifying the localization logic.
To align with the team's direction, I’m starting this discussion to gather input on the approach being considered.
You can view my PR here: #2430.
Looking forward to your thoughts!
Beta Was this translation helpful? Give feedback.
All reactions