-
-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add translation process and small fixes (#930)
## Launch Checklist This adds information about how to translate Maputnik and how to get in touch with people who have translated in the past. @keichan34, @jieme, @lhapaipai - I need your approval for this so that people in the future will know to contact you in case text is being added and they need help translating it. CC: @ianthetechie I've also changed the word "Language" in the upper part of the screen so that it won't be translated in case you accidentally switch language, and you need to switch back. I've also fixed some RTL issues in the CSS and updated the maplibre components labels when the language changes.
- Loading branch information
Showing
12 changed files
with
75 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Internationalization | ||
|
||
The process of internationlization is pretty straight forward for Maputnik. | ||
|
||
In order to add a new translation you'll need to create a new folder and a json file with the relevant language code and make sure all the keys are translated. | ||
The following users can help you with the relevant languages: | ||
|
||
- English - @HarelM | ||
- Japanese - @keichan34 | ||
- Simplified Chinese - @jieme | ||
- Hebrew - @HarelM | ||
- French - @lhapaipai | ||
|
||
If you happen to add a feature which needs some text to be translated, update the translation files. | ||
After running, check your working copy for files and add/correct as needed. | ||
|
||
``` | ||
npm run i18n:refresh | ||
``` | ||
|
||
You can test the UI in different languages using the dropdown in the top menu | ||
Note that Maputnik automatically localize based on browser language settings and stores this language in local storage. | ||
You can use incognito mode to check a first time usage. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
} | ||
|
||
input.maputnik-string { | ||
margin-left: 5px; | ||
margin: 0 5px; | ||
width: 60%; | ||
display: inline-block; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,7 +178,7 @@ | |
} | ||
|
||
&-group-content { | ||
margin-left: $margin-3; | ||
margin: 0 $margin-3; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters