Language

Functions

sWatch.lang

Returns translated sentence. Each sentence is defined in the language folder. If a sentence does not exist, the given argument will get returned instead.

Arguments

  1. (String) languageKey

Returns

  1. (String) translated - if key doesn't exist, languageKey will get returned

Example

print(sWatch.lang("my_sentence")) // prints: "This is a translated sentence"

print(swatch.lang("does_not_exist")) // prints: "does_not_exist"
sWatch.getLanguageTable

Returns all defined sentences of your selected language. This is for example, send to all admins to translate the menu.

Returns

  1. (Table) languageTable

Last updated