You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ISSUE-WAVE-001: Implement Internationalization System (i18n)
✨ Issue Request
Implement multilingual support in Tokasa through an internationalization system based on JSON files per language. Users will be able to change the language and all texts will update automatically.
📌 Description
This issue addresses the implementation of a translation system for Tokasa, with initial support for Spanish and English. JSON files per language will be created containing all text translations. The application should change texts to the language selected by the user without reloading the page and save the language preference in localStorage.
Scope: The implementation will be applied only to the /dashboard/admin page to maintain a clear and manageable scope.
🛠️ Steps to Reproduce (if applicable)
Not applicable; this is a new i18n functionality.
🖼️ Screenshots (if applicable)
Not applicable as this is a code implementation, but screenshots of the language selector can be added in future updates.
🎯 Expected Behavior
The solution should:
🔹 Allow changing language from the UI through a selector in /dashboard/admin.
🔹 Reflect language change instantly without page reload.
🔹 Maintain language preference between sessions using localStorage.
🔹 Provide fallback to English if any translation is missing (base language).
🔹 Ensure all visible texts in the admin page are translated.
ISSUE-WAVE-001: Implement Internationalization System (i18n)
✨ Issue Request
Implement multilingual support in Tokasa through an internationalization system based on JSON files per language. Users will be able to change the language and all texts will update automatically.
📌 Description
This issue addresses the implementation of a translation system for Tokasa, with initial support for Spanish and English. JSON files per language will be created containing all text translations. The application should change texts to the language selected by the user without reloading the page and save the language preference in
localStorage.Scope: The implementation will be applied only to the
/dashboard/adminpage to maintain a clear and manageable scope.🛠️ Steps to Reproduce (if applicable)
Not applicable; this is a new i18n functionality.
🖼️ Screenshots (if applicable)
Not applicable as this is a code implementation, but screenshots of the language selector can be added in future updates.
🎯 Expected Behavior
The solution should:
/dashboard/admin.localStorage.🚀 Suggested Solution / Feature Request
Setup
react-i18nextandi18next./src/locales/folder.i18n.tsfile.Translation Files
es.jsonwith all texts in Spanish.en.jsonwith all texts in English.Implementation
main.tsx.t('key').LanguageSelectorcomponent.localStorage.Texts to Translate (Only
/dashboard/adminpage)📝 File Structure
📌 Additional Notes
en)./dashboard/adminpage to maintain a manageable scope.Please read this guide: https://github.com/tokasa-starknet/ToKasa/blob/main/CONTRIBUTING.md