Skip to content

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).

Fields

  • 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) [❌]
    1. #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"```
    2. rules: # your TranslatableBlock key would be "rules"
        Block:
        - "&f1. &7No swearing"
        - "&f1. &7No NSFW"
        - "&f1. &7No cheating"
        - "&f1. &7Respect others"```
    3. 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
    1. #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"```
    2. 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"```
    3. 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"```

Clone this wiki locally