mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-30 21:42:20 +02:00
Update code tags
This commit is contained in:
parent
fa68a7ef83
commit
eb01915d6b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user