...
Code Block | ||
---|---|---|
| ||
import { langString, loadLangStrings } from 'tui/i18n';
async function getMessage(message) {
const str = langString('message:' + messageId, 'totara_tui');
await loadLangStrings([str]);
return str.toString();
} |
...
...
Code Block | ||
---|---|---|
| ||
import { langString, loadLangStrings } from 'tui/i18n';
async function getMessage(message) {
const str = langString('message:' + messageId, 'totara_tui');
await loadLangStrings([str]);
return str.toString();
} |
...