Implemented Language Selector # 35 #49
No reviewers
Labels
No Label
Large
Medium
Small
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: david/poker-chips-helper#49
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "vutukuri15/35"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR implements multi-language support in the poker chip distribution app. Users can now select their preferred language from the app settings, and all text elements (buttons, labels, instructions) update accordingly.
Nice work on this one. Good job keeping things organized and modular, and the small fixes to tests to make things more consistent.
Do we need an update for
package.json
for the newi18n
related packages? I do not see a diff for that file.I took a quick look at the react-i18n docs to follow up on our discussion about how to actually use the translations based on the two approaches
My interpretation of the docs is that the way like this
is geared towards accessing translations from outside a React component.
The other way, using the hook is intended for use from inside functional components (like all of our app translations).
I am not suggesting you change this (unless you want to) because consistency is most important and we have that. However, keep this in mind for future projects.
I think these should be lowercase, for the sake of consistency with the others. That will involve changing the same lines in
en.json
and the app codeThe keys specifically, not the values
Thank you for the feedback and suggestions! You're right about the missing update in package.json—I’ll make sure to add the new i18n dependencies.
I appreciate your insights, and I’ll definitely keep them in mind for future work.
Thanks for pointing that out! I’ve updated the keys to lowercase in es.json, en.json and the app code for consistency.