Skip to content

Commit c554543

Browse files
authored
Add info on how to test the translations locally
1 parent fab31a4 commit c554543

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

TRANSLATIONS.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,24 @@ Each translation must be reviewed by a second member of the team for quality con
5656
* You see the proposed suggestions. Check the checkmark to accept one, or the cross to refuse.
5757
* You may add a better suggestions, which others can in turn review
5858

59+
### Locally testing translations
60+
61+
It can be useful to locally preview the translation to evaluate if the layout breaks (example with different graphemes).
62+
63+
In order to check the changes, you need:
64+
65+
* Clone the website code repository
66+
67+
* [Run the website locally](https://github.com/rust-lang/www.rust-lang.org#running-the-app-locally)
68+
69+
* Download from Pontoon the translation you're currently working on
70+
71+
![2020-01-18_00-01-1579304647](https://user-images.githubusercontent.com/6098822/72654165-a2577000-398e-11ea-96f0-d44c5111d754.jpg)
72+
73+
* Copy the downloaded file into `locales/<lang>` of your local copy of the website
74+
75+
* Restart the website locally everytime you change a local file
76+
5977
## Special case: Policies
6078

6179
All policy documents outside other then English must contain a link to the original on top, indicating that the English translation is binding and the translation is a best effort.

0 commit comments

Comments
 (0)