Event locale, such as "en-US", or null if no locale on event
Get translated text for a given key.
Key used to look up a translation.
Optional. By default, the locale on the event is used. You can override with this parameter. You can also specify current event locale with LocalizationPowers.getEventLocale().
Optional. Pass in values to be interpolated into your translations. Your translated text should refer to these values wrapped inside of double curly braces. Use the name of the variables that you pass in, in your translated text.
Translated text or key if no translation is found.
Generated using TypeDoc
Get the locale for the current event.
// Ensure you import the LocalizationPowers // import { LocalizationPowers } from "@andi/powers"; const eventLocale = LocalizationPowers.getEventLocale();