HeyPuter / puter

🌐 The Internet OS! Free, Open-Source, and Self-Hostable.
https://puter.com
GNU Affero General Public License v3.0
24.71k stars 1.59k forks source link

Replace human-readable text with i18n keys #663

Open jelveh opened 1 month ago

jelveh commented 1 month ago

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

Implementation Details

  1. Go through each file in ./src/gui/src/UI
  2. 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

Definition of Done

ADTmux commented 4 weeks ago

hey can I work on this?

jelveh commented 4 weeks ago

Of course! Assigned ✌️

Let me know if you need help.

NFFY88 commented 4 weeks ago

Hi! If you need help translating new keys into Russian, call me.

Schlipe commented 4 weeks ago

Hey, mind if I give a go?

jelveh commented 4 weeks ago

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?

jelveh commented 3 weeks ago

@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.

jelveh commented 3 weeks ago

@Schlipe are you still interested in picking this up? I can assign it to you.

Schlipe commented 3 weeks ago

@Schlipe are you still interested in picking this up? I can assign it to you.

Yes, u may assign I'll try my best

jelveh commented 3 weeks ago

Thank you @Schlipe. Assigned. Let me know if you need any help :)