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:
David Taylor 2024-11-19 11:25:22 +00:00 committed by GitHub
parent 719457e430
commit d606ac3d8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;