DEV: add `i18n` named export to "discourse-i18n" (#29820)
Soon, we intend to consolidate all js/gjs translation calls to this new function. See https://github.com/discourse/lint-configs/pull/67 and https://github.com/discourse/discourse/pull/29804
This commit is contained in:
parent
719457e430
commit
d606ac3d8e
|
@ -408,3 +408,5 @@ export class I18nMissingInterpolationArgument extends Error {
|
|||
|
||||
// Export a default/global instance
|
||||
export default globalThis.I18n = new I18n();
|
||||
|
||||
export const i18n = globalThis.I18n.t;
|
||||
|
|
Loading…
Reference in New Issue