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

Translations needed #27

Open
f-r00t opened this issue Aug 22, 2022 · 8 comments · Fixed by #49
Open

Translations needed #27

f-r00t opened this issue Aug 22, 2022 · 8 comments · Fixed by #49
Labels
bounty good first issue Good for newcomers

Comments

@f-r00t
Copy link
Member

f-r00t commented Aug 22, 2022

Hey! If you speak a language that is not yet represented in Hugin Mobile, feel free to make one! The bounty is $30 worth of XKR so please add your xkr-address along with your pull request.

NOTE! If your language is already translated, you can also get a part of the bounty for updating the translation with missing lines, or improve existing lines with better translations! Simply update the translation file in question and you will get a payout equal to the percentage of the translation that has been updated!

Instructions:

First, make sure your language does not already have a translation here:
https://github.com/kryptokrona/hugin-mobile/tree/master/src/i18n

Read this guide on how to properly make a fork, a new branch, add your changes and then finally submit a pull request here:
https://jarv.is/notes/how-to-pull-request-fork-github/

The changes you need to make:

  1. Copy /src/i18n/en.json to /src/i18n/your-language.json and change your-language to your language's language code (https://www.loc.gov/standards/iso639-2/php/English_list.php see this list and use the code in the ISO 639-1 column).
  2. Translate all the values in the translation file to your language. (Only the items on the right should be translated, the so called key shouldn't be translated).
  3. Edit /src/i18n.js and add your language file to the imports, and to the "resources" list as shown below:
import en from './i18n/en.json';
 // This was added
import sv from './i18n/sv.json';
// end of addition.

i18next
  .use(i18nextReactNative)
  .use(initReactI18next)
  .init({
    compatibilityJSON: 'v3',
    fallbackLng: 'en',
    debug: true,
    resources: {
      en: {
        translation: en,
      },
      // This was added
      sv: {
        translation: sv,
      }
     // end of addition.
    },
  });

Obviously you want to add the actual path to your languages file and use your language's language code in the list.

  1. Make a pull request with your XKR address applied.
  2. Wait for it to be approved and your bounty to be paid out!

The XKR team thanks you for your efforts!

@f-r00t f-r00t added good first issue Good for newcomers bounty labels Aug 22, 2022
@f-r00t f-r00t pinned this issue Sep 12, 2022
@f-r00t f-r00t closed this as completed in #49 Sep 7, 2023
f-r00t added a commit that referenced this issue Sep 7, 2023
 fix: #27 translation of English to Hindi file added in i18n folder
@dnyaneshwar-rede
Copy link
Contributor

@f-r00t Sir I am interested in contributing to this issue by adding Marathi language

@f-r00t
Copy link
Member Author

f-r00t commented Dec 12, 2023

@f-r00t Sir I am interested in contributing to this issue by adding Marathi language

Go for it! :)

@f-r00t f-r00t reopened this Dec 12, 2023
@dnyaneshwar-rede
Copy link
Contributor

fix: #52 Translation In Marathi added
wallet address - SEKReW5GbzQKY6uAYyo4CB4nwcWEnBp7bYjUn6K3RdrFbhMBpFWVHndQenGA2bT7BM1UVSCYu46jEf6afxyrrCKTb6P38hz8t1M

@dnyaneshwar-rede
Copy link
Contributor

dnyaneshwar-rede commented Dec 18, 2023

fix:#55 Translaton in Telagu added
wallet Address :
SEKReW5GbzQKY6uAYyo4CB4nwcWEnBp7bYjUn6K3RdrFbhMBpFWVHndQenGA2bT7BM1UVSCYu46jEf6afxyrrCKTb6P38hz8t1M

@ShreeShinde2442
Copy link
Contributor

hey @f-r00t can I work this issue

@f-r00t
Copy link
Member Author

f-r00t commented Feb 26, 2024

hey @f-r00t can I work this issue

Sure, go ahead. Which language are you translating to?

@ShreeShinde2442
Copy link
Contributor

ShreeShinde2442 commented Feb 26, 2024

i can work on Bengali for now

@f-r00t
Copy link
Member Author

f-r00t commented Feb 26, 2024

i can work on Bengali for now

Go for it! 🫡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants