- VS Code, or any other text editor/IDE
- Git
- GitHub Account
- VS Code Top-Ten Pro Tips
- VS Code Source Control
- Git Explained in 100 Seconds
- Git It? How to use Git and Github
- GitHub Pull Request in 100 Seconds
- Download and install all the required tools
- Create a GitHub account, and enable 2 Factor Authentication. You can use Authy as the 2FA app
- Contact @recoskyler, and tell him your GitHub username
- Open VS Code, terminal, or command prompt
- Enter
git config --global user.name "YOUR FULL NAME"
andgit config --global user.email "YOUR GITHUB EMAIL"
commands, press ENTER after each command - Navigate to the folder where you would like to store the project using
cd FOLDER_NAME
to go in a directory, orcd ..
to go up a directory - Clone the repository using
git clone https://github.com/apogeecode/apogee-playground-app-translation.git
command. It will create a folder named apogee-playground-app-translation - Navigate into the newly created project folder using
cd apogee-playground-app-translation
command, keep the terminal/command prompt open unless you are using VS Code - Switch to the main branch using the
git checkout main
- Create a new branch with the following format: "YOUR_NAME-LANGUAGE_NAME-translation", for example "atalay-turkish-translation". Use the command
git checkout -b YOUR_NAME-LANGUAGE_NAME-translation
to create and switch to the new branch - Open the folder in VS Code using
code .
command. You can use any other IDE to open this folder as well - Create a new file using the following format: intl_ISO_639-1_LANGUAGE_CODE.arb, such as intl_en.arb for English. You can find the language codes here.
- Copy the contents of the intl_en.arb file to the newly created file
- Replace the value of "@@locale" with the new language code
.arb files consist of key/value pairs:
{
"KEY": "VALUE",
"TEXT_KEY": "Translated text"
}
You can translate all the values except the app name itself. Keys and commas (,) must NEVER be changed.
- Make sure you are on your branch using the command
git checkout YOUR_NAME-LANGUAGE_NAME-translation
intl_en.arb
{
"@@locale": "en",
"appName": "Apogee Playground",
"loginButton": "Submit",
"name": "Name"
}
will be translated to
intl_tr.arb
{
"@@locale": "tr",
"appName": "Apogee Playground",
"loginButton": "Devam Et",
"name": "İsim"
}
- Make sure that the only file you have changed/updated/created is the .arb file, if not please undo the changes to all the other files
- Open the terminal/command prompt, and make sure you are in the project root (apogee-playground-app-translation folder)
- Enter the
git add intl_LANGUAGE_CODE.arb
command, replace the intl_LANGUAGE_CODE.arb with the actual file name - Enter the
git commit -m "Translated to LANGUAGE_NAME"
command, replace the LANGUAGE_NAME with the language name in English (For example:TürkçeTurkish) - Enter the
git push
command, git might ask you for your credentials - Open the Pull Requests page of the repository
- Click on the "New Pull Request" button
- Select "translation" branch as the "base", and your branch as the "compare"
- Click on the "Create Pull Request" button