Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
import { langString, loadLangStrings } from 'tui/i18n';

async function getMessage(message) {
  const str = langString('message:' + messageId, 'totara_tui');
  await loadLangStrings([str]);
  return str.toString();
}

...