Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎌 add more languages #159

Open
Tracked by #274
RobzLegz opened this issue Aug 23, 2022 · 0 comments
Open
Tracked by #274

🎌 add more languages #159

RobzLegz opened this issue Aug 23, 2022 · 0 comments
Labels
good first issue Good for newcomers translation Issues or pull requests related to translations

Comments

@RobzLegz
Copy link
Owner

RobzLegz commented Aug 23, 2022

Add more languages

  1. Go to https://github.com/RobzLegz/kidala-upload/blob/main/frontend/src/languages/text.ts
  2. Click edit file button
    image
  3. Enter country code in the supportedLang interface
    image
  4. Scroll down and in the translatedText object paste this:
    COUNTRY_CODE: {
        home: {
            selectFile: 'translation',
            changeFile: 'translation',
            ready: 'translation',
            upload: 'translation',
            maxSize: '(translation)',
            copied: 'translation',
            addTag: 'translation',
            enterTag: 'translation',
        },
        navigation: {
            gallery: 'translation',
            myFiles: 'translation',
            home: 'translation',
        },
        gallery: {
            contact: 'translation:',
            download: 'translation',
            copyLink: 'translation',
            showNonImageFiles: 'translation',
            seen: 'translation:',
        },
        global: {
            open: 'translation',
            close: 'translation',
            private: 'translation',
        },
    },
  1. After that scroll down and add your language to supportedLanguages array
    {
        language: 'Your language',
        short: 'COUNTRY_CODE_UPPERCASE',
        flag: 'Your language flag source', // get flag source here: https://www.worldometers.info/geography/flags-of-the-world/
        lang: 'COUNTRY_CODE_UPPERCASE',
    },
  1. Scroll to bottom and propose changes
    image
  2. Create pull request
    image
    image
  3. That's it 🚀
@RobzLegz RobzLegz added enhancement New feature or request good first issue Good for newcomers labels Aug 23, 2022
@RobzLegz RobzLegz pinned this issue Aug 23, 2022
@RobzLegz RobzLegz added translation Issues or pull requests related to translations and removed enhancement New feature or request labels Aug 23, 2022
This was referenced Sep 11, 2022
@RobzLegz RobzLegz changed the title add more languages 🎌 add more languages Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers translation Issues or pull requests related to translations
Projects
None yet
Development

No branches or pull requests

1 participant