A translator for retrieving texts in multi-languages.
More...
#include <translator.hpp>
A translator for retrieving texts in multi-languages.
◆ get_text()
abi::string essence::globalization::abstract::translator::get_text |
( |
std::string_view | name | ) |
const |
|
inlinenodiscard |
Gets a text in the current language.
- Parameters
-
name | The unique name of the text. |
- Returns
- The text or the name if not exists.
◆ language()
abi::string essence::globalization::abstract::translator::language |
( |
| ) |
const |
|
inlinenodiscard |
Gets the current language.
- Returns
- The current language.
◆ set_language()
void essence::globalization::abstract::translator::set_language |
( |
std::string_view | name | ) |
const |
|
inline |
Sets the current language.
- Parameters
-
name | The current language. |
◆ set_virtual_fs()
Sets the underlying virtual filesystem operator.
- Parameters
-
fs_operator | The virtual filesystem operator. |
◆ set_working_directory()
void essence::globalization::abstract::translator::set_working_directory |
( |
std::string_view | directory | ) |
const |
|
inline |
Sets the working directory.
- Parameters
-
directory | The working directory. |
◆ version()
std::uint32_t essence::globalization::abstract::translator::version |
( |
| ) |
const |
|
inlinenodiscard |
Gets the version of the translator.
- Returns
- The version.
◆ virtual_fs()
Gets the underlying virtual filesystem operator.
- Returns
- The virtual filesystem operator.
◆ working_directory()
abi::string essence::globalization::abstract::translator::working_directory |
( |
| ) |
const |
|
inlinenodiscard |
Gets the working directory.
- Returns
- The working directory.
The documentation for this class was generated from the following file: