Replace human-readable text with i18n keys
For translation purposes, we need to replace all human-readable text in the UI components with i18n(key) calls. This will allow for easier localization in the future.
Tasks
- [ ] Identify all human-readable text in files located under
./src/gui/src/UI - [ ] Replace each instance of human-readable text with
i18n(key) - [ ] Add corresponding translations for each key in
./src/gui/src/i18n/translations/en.js
Implementation Details
- Go through each file in
./src/gui/src/UI - For each human-readable string found:
- Create a unique, descriptive key for the string
- Replace the string with
i18n(key) - Add the key-value pair to
./src/gui/src/i18n/translations/en.js
Example
Before:
<button>Submit</button>
After:
<button>{i18n('submit')}</button>
In ./src/gui/src/i18n/translations/en.js:
const en = {
name: "English",
english_name: "English",
code: "en",
dictionary: {
// ... existing translations
'submit_button_text': 'Submit',
// ... existing translations
}
}
Additional Notes
- Ensure keys are descriptive and follow a consistent naming convention
- Be cautious with dynamic text or text that includes variables
- Consider context when creating keys to avoid potential conflicts
Definition of Done
- All human-readable text in files under
./src/gui/src/UIis replaced withi18n(key)calls. - All new keys are added to
./src/gui/src/i18n/translations/en.jswith correct English translations. - The application builds without errors and all UI elements display correctly.
hey can I work on this?
Of course! Assigned ✌️
Let me know if you need help.
Hi! If you need help translating new keys into Russian, call me.
Hey, mind if I give a go?
Hey, mind if I give a go?
This issue is already assigned. Let me double-check quickly to see if they're working on it.
Hey @ADTmux, are you still working on this issue?
@ADTmux just a quick follow-up, are you still working on this? I think @Schlipe is interested if you don't have time to finish it.
@Schlipe are you still interested in picking this up? I can assign it to you.
@Schlipe are you still interested in picking this up? I can assign it to you.
Yes, u may assign I'll try my best
Thank you @Schlipe. Assigned. Let me know if you need any help :)
Hey. LMK if any help needed. I can contribute.
Hi. Is this issue still open ? I would love to work on this.
Yes, it's still open! Assigned :) Let me know if you need help.
Can I give it a try? @jelveh
Hi @meher745, thanks for your interest in contributing to Puter. This issue is already assigned to @Anant1107. I'd be happy to assign another issue to you if you're interested.
HI @jelveh , I would love to work on another issue. Pease assign it to me.
Hi @jelveh Is this issue still open? Can I take it?