Translation of endcoronavirus.org website
- Go to Weblate project
- Register there and start translating
- Make sure not to add / remove any whitespaces around translated strings
- Weblate administrators: commit changes to GitHub using Manage -> Commit
- Merge pull request created by Weblate to main branch
- Translations on endcoronavirus.org will be automatically updated
- Create a new country code directory with a
dict.json
file containig translation from English to chosen language
- Repository has GitHub pages enabled
- There is a custom script injected in the squarespace settings (header section), which is using squarelate to translate website:
<script src="https://unpkg.com/@kbobrowski/squarelate@v1.1.2/dist/squarelate.min.js"></script>
<script>
var squarelate = Squarelate.defaultBuilder("https://necsi.github.io/ecv-translation", 'en');
squarelate.init();
</script>
- Languages are added in squarespace
Pages
, as links which point to e.g.?lang=pl
, wherepl
is a country code. Note that after saving link settings and opening link settings again there will be nothing in thelink
field, but this seems like a squarespace bug.