Update code tags

This commit is contained in:
Dean 2025-04-08 00:34:36 -07:00 committed by GitHub
parent fa68a7ef83
commit eb01915d6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,7 +127,7 @@ fetching translated text is as follows:
2. The game looks up the key in the corresponding JSON file in the user's 2. The game looks up the key in the corresponding JSON file in the user's
language, e.g. language, e.g.
```json ```ts
// from "en/file-name.json"... // from "en/file-name.json"...
"keyName": "{{arg1}}! This is {{arg2}} of translated text!" "keyName": "{{arg1}}! This is {{arg2}} of translated text!"
``` ```
@ -136,7 +136,7 @@ corresponding English key (in the case of LATAM Spanish, it will first default t
3. The game shows the text to the user: 3. The game shows the text to the user:
```json ```ts
"Hello! This is an example of translated text!" "Hello! This is an example of translated text!"
``` ```
### Adding Translated Text ### Adding Translated Text
@ -163,4 +163,4 @@ It'll be merged into the locales repository after any necessary corrections, at
> Some issues may require you to have unlocks on your save file which go beyond overrides. For this case, there is a save file with everything unlocked (some of which are not legitimately obtainable). > Some issues may require you to have unlocks on your save file which go beyond overrides. For this case, there is a save file with everything unlocked (some of which are not legitimately obtainable).
1. Start the game up locally and navigate to `Menu -> Manage Data -> Import Data` 1. Start the game up locally and navigate to `Menu -> Manage Data -> Import Data`
2. Select [everything.prsv](test/testUtils/saves/everything.prsv) (`test/testUtils/saves/everything.prsv`) and confirm 2. Select [everything.prsv](test/testUtils/saves/everything.prsv) (`test/testUtils/saves/everything.prsv`) and confirm