ODLanguage class
We are still working the API Reference! This page might be incomplete or doesn't contain all details!
Overview
This is an Open Ticket language file.
It contains metadata and all translation strings available in this language.
Register this class to an ODLanguageManager
to use it!
JSON languages should be created using the ODJsonLanguage
class instead!
Properties
data
type ➜ any
The raw object data of the translation.
file
string ➜ string
The name of the file with extension.
inherited id
class ➜ api.ODId
The id of this data.
metadata
type ➜ null|api.ODLanguageMetadata
The metadata of the language if available.
path
string ➜ string
The path to the file relative to the main directory.
Methods
constructor()
function ➜ api.ODLanguage
(no description)
View Parameters (2)
id
: type ➜api.ODValidId
- Parameter Description Lorem Ipsum.data
: type ➜any
- Parameter Description Lorem Ipsum.
inherited protected _change()
function ➜ void
Trigger an onChange()
event in the parent ODManager
of this class.
inherited changed()
function ➜ void
( SYSTEM ONLY!!) Set the callback executed when a value inside this class changes.
init()
function ➜ api.ODPromiseVoid
Init the language.
Defaults
We're still working on this part of the documentation!
Examples
We're still working on this part of the documentation!