Skip to content

Commit 2019364

Browse files
authored
Merge pull request #28 from mapachurro/refactor-loc
Refactor backend re: locale file structure, make term names on explore feature human readable
2 parents b2687b3 + 6ff225b commit 2019364

65 files changed

Lines changed: 77006 additions & 186 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ If there doesn't seem to be an appropriate locale for the user, the root index f
115115
*Note: the above functionality probably has a bad impact on SEO, and we should consider disabling it.*
116116

117117
These homepages are created by `build-homepages.js`, which runs during the build process.
118-
This script ingests `index-template.html`, and applies UI translation strings found in `./l10n/<four-letter-dash-locale-code>/translation.json` to the elements that need to contain human-readable information.
118+
This script ingests `index-template.html`, and applies UI translation strings found in `./locales<four-letter-dash-locale-code>/translation.json` to the elements that need to contain human-readable information.
119119

120120
### The Navbar and language switching
121121

@@ -261,7 +261,7 @@ There is a cross-locale mapping function present in this script, which should li
261261

262262
wordsofweb3 should always prioritize human-readability over concessions to the conventions of machines, even when that sucks for technical reasons.
263263

264-
An example of this: we do not have paths like `/es-419/cuenta.html`; no, we have `/nederlands/ethereum.html`. This does mean that, at times, we have to leverage functions available in the `l10n.js` script to convert between different formats of language codes. This script leverages a .json file which contains several different formats, at `./l10n/language-codes.json`:
264+
An example of this: we do not have paths like `/es-419/cuenta.html`; no, we have `/nederlands/ethereum.html`. This does mean that, at times, we have to leverage functions available in the `l10n.js` script to convert between different formats of language codes. This script leverages a .json file which contains several different formats, at `./public/assets/language-codes.json`:
265265

266266
```json
267267
{

0 commit comments

Comments
 (0)