-
Notifications
You must be signed in to change notification settings - Fork 1
TranslatableBlock
Luis Benavides-Naranjo edited this page Mar 15, 2024
·
2 revisions
BlobLib allows translating blocks of lines of text. A block is a list of lines of text that respects the order (from first to last).
- All TranslatableBlocks have fields. If a required field is missing in the configuration, it will log it in console.
- ❌ = Required
- ✅ = Optional
- Block (The block of text to be translated) [❌]
-
#your key would be the name of your file. if your file is "rules.yml", then the key is "rules" Block: - "&f1. &7No swearing" - "&f1. &7No NSFW" - "&f1. &7No cheating" - "&f1. &7Respect others"```
-
rules: # your TranslatableBlock key would be "rules" Block: - "&f1. &7No swearing" - "&f1. &7No NSFW" - "&f1. &7No cheating" - "&f1. &7Respect others"```
-
myServerLOLomgYOLO: rules: # your TranslatableBlock key would be "myServerLOLomgYOLO.rules" Block: - "&f1. &7No swearing" - "&f1. &7No NSFW" - "&f1. &7No cheating" - "&f1. &7Respect others"```
-
- Locale (The locale of this TranslatableSnippet) [✅] Defaults to en_us
-
#your key would be the name of your file. if your file is "rules.yml", then the key is "rules" Locale: es_es Block: - "&f1. &7No malas palabras" - "&f1. &7Nada NSFW" - "&f1. &7No hacer trampa" - "&f1. &7Respetar los demas"```
-
Locale: es_es rules: # your TranslatableBlock key would be "rules" Block: - "&f1. &7No malas palabras" - "&f1. &7Nada NSFW" - "&f1. &7No hacer trampa" - "&f1. &7Respetar los demas"```
-
Locale: es_es myServerLOLomgYOLO: rules: # your TranslatableBlock key would be "myServerLOLomgYOLO.rules" Block: - "&f1. &7No malas palabras" - "&f1. &7Nada NSFW" - "&f1. &7No hacer trampa" - "&f1. &7Respetar los demas"```
-