Index
All Classes and Interfaces|All Packages
G
I
- I18n - Enum Class in one.tranic.t.i18n
- I18nLoader - Class in one.tranic.t.i18n
-
A utility class for loading and managing internationalized translations through a language map.
- I18nLoader(Class<?>, String) - Constructor for class one.tranic.t.i18n.I18nLoader
- I18nLoader(Class<?>, String, Locale) - Constructor for class one.tranic.t.i18n.I18nLoader
O
- one.tranic.t.i18n - package one.tranic.t.i18n
P
- PROPERTIES - Enum constant in enum class one.tranic.t.i18n.I18n
-
Example Properties:
R
- reset(Locale) - Method in class one.tranic.t.i18n.I18nLoader
-
Resets the current state of the language map and assigns a new locale for this instance.
S
- setAdaptar(I18n) - Method in class one.tranic.t.i18n.I18nLoader
-
Sets the adapter used for this instance.
- setLanguage(Locale) - Method in class one.tranic.t.i18n.I18nLoader
-
Sets the language for localized operations.
- SnakeYAML - Enum constant in enum class one.tranic.t.i18n.I18n
-
Example Yaml:
T
- to(String) - Method in class one.tranic.t.i18n.I18nLoader
-
Translates the provided key into a localized string using the predefined language map.
- to(String, Object...) - Method in class one.tranic.t.i18n.I18nLoader
-
Retrieves a formatted translation for the specified key using the provided arguments.
- toBaseComponent(String) - Method in class one.tranic.t.i18n.I18nLoader
-
Converts a localized string corresponding to the given key into an array of BaseComponent objects.
- toBaseComponent(String, Object...) - Method in class one.tranic.t.i18n.I18nLoader
-
Converts a translation key and its formatted arguments into an array of
BaseComponent. - toBaseComponentBrace(String, Object...) - Method in class one.tranic.t.i18n.I18nLoader
-
Converts a localized and formatted string with placeholders replaced by the provided arguments into an array of
BaseComponent. - toBrace(String, Object...) - Method in class one.tranic.t.i18n.I18nLoader
-
Replaces placeholders in the localized string corresponding to the provided key with the provided arguments.
- toComponent(String) - Method in class one.tranic.t.i18n.I18nLoader
-
Converts the provided translation key into an Adventure Component.
- toComponent(String, Object...) - Method in class one.tranic.t.i18n.I18nLoader
-
Converts the translation key and its formatted arguments into an Adventure Component.
- toComponent(String, TagResolver...) - Method in class one.tranic.t.i18n.I18nLoader
-
Converts the translation key into a
Componentusing MiniMessage format. - toComponentBrace(String, Object...) - Method in class one.tranic.t.i18n.I18nLoader
-
Converts the provided translation key and its formatted arguments into an Adventure Component.
- toString() - Method in class one.tranic.t.i18n.I18nLoader
U
- update() - Method in class one.tranic.t.i18n.I18nLoader
-
Updates the internal language map with localized strings for the specified class, namespace, and locale.
V
- valueOf(String) - Static method in enum class one.tranic.t.i18n.I18n
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class one.tranic.t.i18n.I18n
-
Returns an array containing the constants of this enum class, in the order they are declared.
X
G I O P R S T U V XAll Classes and Interfaces|All Packages