Skip to content

TranslatableSnippet

Luis Benavides-Naranjo edited this page Mar 15, 2024 · 4 revisions

BlobLib allows translating specific lines of text. A line of text is called a snippet.

Fields

  • All TranslatableSnippets have fields. If a required field is missing in the configuration, it will log it in console.
  • ❌ = Required
  • ✅ = Optional

  • Snippet (The snippet of text to be translated) [❌]
    1. #your key would be the name of your file. if your file is "epic_event.yml", then the key is "epic_event"
      Snippet: "&5An epic event has taken place"```
    2. epic_event: # your TranslatableSnippet key would be "epic_event"
        Snippet: "&5An epic event has taken place"```
    3. myServerLOLomgYOLO:
        epic_event: # your TranslatableSnippet key would be "myServerLOLomgYOLO.epic_event"
          Snippet: "&5An epic event has taken place"```
  • Locale (The locale of this TranslatableSnippet) [✅] Defaults to en_us
    1. #your key would be the name of your file. if your file is "epic_event.yml", then the key is "epic_event"
      Locale: es_es
      Snippet: "&5Un evento épico acaba de tener lugar"```
    2. Locale: es_es
      epic_event: # your TranslatableSnippet key would be "epic_event"
        Snippet: "&5Un evento épico acaba de tener lugar"```
    3. Locale: es_es
      myServerLOLomgYOLO:
        epic_event: # your TranslatableSnippet key would be "myServerLOLomgYOLO.epic_event"
          Snippet: "&5Un evento épico acaba de tener lugar"```

Clone this wiki locally