This repository contains the latest version of the language files that are used by the mod. We're making these public in order to allow for additions to be made by the community. If you'd like to add translations for your language (or correct the translations already preset), please see below for information on contributing.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Please note: This is a development repository. If you're a JourneyMap user, you do not need anything in this repo - everything you need will be included with the JourneyMap mod itself.
We're huge fans of the open source community, and we're happy to accept pull requests. If you'd like to chat with us before making a contribution, we suggest you join join the discord server. Please also take a look at the Code of Conduct before posting an issue, PR or comment.
Before getting started, please take the following steps:
-
Sign up for a free account on GitHub if you don't have one already
-
Review the current issues for a list of known translation needs
-
Read the How to translate JourneyMap wiki page for detailed instructions on doing a translation correctly
Note: Changes to
en_us
files are generally not accepted unless they address typos
If you have questions or need help, feel free to join the discord server. Please be patient and hang around; it may be minutes or hours before someone sees your question.
You can either use your web browser to suggest changes to our translations, or you can use Git directly if you're already comfortable with it.
If you're new to working with GitHub or aren't a programmer, the easiest way to contribute a translation is using the GitHub website directly in your browser.
-
First of all, open the file you need for editing.
If a file doesn't already exist for your language: Navigate to the
lang
folder, and click Create new file at the top of the file list. Make sure to enter a name for your file in the box provided above the editor - for example,es_es.json
would be the correct name for a Spanish language file. Your file should containIf a file exists for your language: Simply navigate to it and click on the pencil icon at the top right to begin editing.
-
Make your edits to the file, and provide some additional context for your edits by writing a summary in the boxes provided.
-
Click Propose file change to open a pull request. This will be used to keep track of the changes you've made, and will allow us to merge them into our copies of the files.
- If you have further changes to make, feel free to keep editing. You'll find that a copy of this repository has been created under your own account when you opened your pull request - continue to edit the files in your copy and the changes will be added to your pull request.
-
Wait. We'll review your pull request and provide you with feedback; the pull request will be merged when we're happy with your changes. At this point, your job is done - your translations will show up in a future version of JourneyMap!
If you're already familiar with Git, feel free to make use of it in the usual way. If you're using Git then we assume that you're used to working collaboratively in this way, but here's what you need to do:
- Click the Fork button at the top of the page and, if prompted, select your GitHub account as the target for the fork.
- On your own computer, clone the repository to a local directory. You can find a command to copy-and-paste by clicking on the Clone or Download button just above the list of files in your fork.
- Create a new branch for your changes. This is important! You can use
git checkout -b branchname
to create a new branch - we suggest naming your branch after the language you're working with, but anything other thanmaster
is fine for a branch name. - Make your changes. Remember that all new language files must be of the form
LOCALE.json
, whereLOCALE
is the locale code for the language you're working with - for example,es_es
for Spanish. - Use
git commit -a -m "summary"
to create a commit with your changes. Remember to make sure your summary is descriptive! - Use
git push
to push your changes to GitHub. - Navigate to your fork on GitHub, and you'll see a prompt to create a new pull request with your changes. Click on the button and follow the instructions to create your pull request.
- If you have further changes to make, feel free to keep editing, committing, and pushing. All new changes made to your fork will automatically appear in the pull request.
- Wait. We'll review your pull request and provide you with feedback - the pull request will be merged when we're happy with your changes. At this point, your job is done; your translations will show up in a future version of JourneyMap!
If you notice a translation error, an issue with phrasing or other similar issue: Please follow the instructions above to contribute a fixed translation.
For all other issues (for example, display issues in the mod):
-
Locate the problematic message key in the language files
-
Check that the issue hasn't already been reported on the issues page
-
Click the New issue button and provide a title, making sure to reference the message key and locale name
For example:
Problem displaying jm.advanced.announcemod.tooltip in es_es
-
Provide a detailed description of the problem you see as part of the issue comment
-
Take screenshots and attach them to your issue before submission