identifier of string resource (the name attribute)
encoding for returned string, either string, wstring or dstring Complexity: O(1). The upper bound is proportional to the number of translations provided at compile-time. The number of string resources does not affect runtime.
void main() { import std.stdio, i18n.text; writeln(strings.hello_world); // Default encoding writeln(strings.getEncoded!("hello_world", wstring)); // UTF-16 }
Get the text for id according to the user's preferred language(s).