Skip to content

Commit df80135

Browse files
committed
Fixed link to swaps in i18n contributor docs
1 parent f31771b commit df80135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contributor_docs/i18n_contribution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ In some cases, the text translated from the original .hbs file (written in HTML)
196196
### Translation of Reference
197197

198198
* The reference works a bit differently. The pages are built in English based on the inline documentation in the source code. They are then swapped out using JS on the front-end.
199-
* The top level keys in the JSON object correspond to the page headings, menu, footer, etc. You can see all the swaps in [this file](https://github.com/processing/p5.js-website/blob/master/dist/reference/index.html#L130).
199+
* The top level keys in the JSON object correspond to the page headings, menu, footer, etc. You can see all the swaps in [this file](https://github.com/processing/p5.js-website/blob/master/src/templates/pages/reference/index.hbs).
200200
* The "p5" key in the JSON object contains individual keys for each reference entry, indexed by variable/function/object name.
201201
* Any entries in the JSON object which are not filled in will be left in English when the page is loaded.
202202
* This is a somewhat hacky solution and not ideal. However, it comes from balancing the desire to have documentation directly in the source code, with the unwieldiness of having multiple languages of documentation inline. It will be our working solution until a better one is found.

0 commit comments

Comments
 (0)