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

Help us translate Hugin Messenger! #13

Open
f-r00t opened this issue Feb 1, 2025 · 0 comments
Open

Help us translate Hugin Messenger! #13

f-r00t opened this issue Feb 1, 2025 · 0 comments
Labels
bounty good first issue Good for newcomers

Comments

@f-r00t
Copy link
Member

f-r00t commented Feb 1, 2025

Hey! If you speak a language that is not yet represented in Hugin Mobile, feel free to make one! The bounty is $20 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!

NOTE! We want real human written translations that makes sense in the context of the app, in other words, we do NOT accept AI generated translations. All pull requests will be ran through an AI detector and we accept no more than 10% of the translation to be AI generated.

Instructions:

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

If it is already translated, you may update any translations that are either wrong or missing for a reward per line change (see above).

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/translations/en.json to /src/i18n/translations/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/i18ntjs 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 zh from './translations/zh.json';
// end of addition.

i18next
  .use(RNLanguageDetector)
  .use(initReactI18next)
  .init({
    compatibilityJSON: 'v3',
    debug: true,
    fallbackLng: 'en',
    resources: {
      en: {
        translation: ben,
      },
      ...
      // Start of addition
     zh: {
        translation: zh,
      },
     // 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 bounty good first issue Good for newcomers labels Feb 1, 2025
@f-r00t f-r00t changed the title Help Help us translate Hugin Messenger! Feb 1, 2025
@ManyRios ManyRios mentioned this issue Feb 1, 2025
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

No branches or pull requests

1 participant