Coder Social home page Coder Social logo

cimicus06 / genshin-wishes-i18n Goto Github PK

View Code? Open in Web Editor NEW

This project forked from genshin-wishes/genshin-wishes-i18n

0.0 0.0 0.0 201 KB

A contribution-driven project to translate Genshin Wishes in many languages.

Home Page: https://genshin-wishes.com

License: MIT License

genshin-wishes-i18n's Introduction

Genshin Wishes

Official translations repository of https://genshin-wishes.com

Everybody is welcome to contribute by translating in their native language.

How it works

Genshin Wishes will be regularly updated by translations from this repository.

  • If a translation is missing, it will fallback to English (US)
  • If one file is incorrect, the whole country's folder will be automatically ignored until it's fixed
  • If you don't understand anything to GitHub, forks, commits & so on, you can always find someone to help you on Discord, or even simply send the files to a @Founder

Here's how you to read a .json file:

{
  "aggregate": {
    "A": "Sentence A",
    "B": "Sentence B"
  },
  "C": "Sentence C"
}

The left-side part (aggregate, A, B and C) are keys, they identify the sentence you translate and should be left untouched. The right-side part can be either an aggregate of other keys (that's the case for aggregate) or a sentence.

You should only modify right-side parts that are sentences.

Sometimes you will see {{ word }} in the translated sentences, this is a variable replaced by a value on the site. For example:

{
  ...,
  "titleWithCount": "All wishes ({{ wishes }})",
  ...
}

This will be translated to "All wishes (1234)" where 1234 is the actual wishes counter of the user. If you are unsure of what the replacement value would be, please do not hesitate to ask.

Value Example Description
{{ wishes }} 1234 Wish counter
{{ content }} 5โ˜… A button to see more content
{{ uid }} 70012345 The user's in-game UID
{{ page }} Banners The title of the current page
{{ step }} 1 A step number in the first login setup
{{ count }} 1234 Number of wishes
{{ confirmation }} DELETE MY ACCOUNT A confirmation phrase for danger actions
{{ banner }} Permanent banner The name of a banner

Case 1: My language does not exist yet

  • Fork the project on GitHub
  • Copy the en-US folder and rename it to your locale (BCP 47 Code).
  • Translate [locale]/site.json|items.json|faq.md and [locale]/instructions/android.md|console.md|ios.md|pc.md (these are a copy/paste of their section in the FAQ file)
  • Add the country code with the others in i18n.json
  • Increment the version in package.json
  • Commit and push your changes
  • Create a pull request from your fork to main to merge your work!

Case 2: My language already exists but needs a fix or an update

  • Fork the project on GitHub
  • Do your fixes/updates
  • Commit and push your changes
  • Increment the version in package.json
  • Create a pull request from your fork to main to merge your work!

Genshin Wishes is not affiliated to miHoYo. Genshin Impact and miHoYo are trademarks or registered trademarks of miHoYo. Genshin Impact ยฉ miHoYo. For any claim, please contact us

genshin-wishes-i18n's People

Contributors

ishou avatar farisea avatar iftuga avatar pein1911 avatar phystam avatar p0ndja avatar raphael-s-souza avatar fuutonshinra avatar slindev avatar max312 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.