mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 19:13:38 +08:00
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 a default/global instance
|
||||||
export default globalThis.I18n = new I18n();
|
export default globalThis.I18n = new I18n();
|
||||||
|
|
||||||
|
export const i18n = globalThis.I18n.t;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user