Update app/client/lib/localization.ts

Co-authored-by: George Gevoian <85144792+georgegevoian@users.noreply.github.com>
This commit is contained in:
jarek 2022-12-12 11:29:16 +01:00 committed by GitHub
parent 07f5f86620
commit 10ac424514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,7 @@ function isLikeDomContents(value: any): boolean {
* namespace and a key prefix (a scope). * namespace and a key prefix (a scope).
*/ */
export function makeT(scope: string, instance?: typeof i18next) { export function makeT(scope: string, instance?: typeof i18next) {
// Can create the scopedInstance yet as it might not be initialized. // Can't create the scopedInstance yet as it might not be initialized.
let scopedInstance: null|typeof i18next = null; let scopedInstance: null|typeof i18next = null;
let scopedResolver: null|typeof i18next.t = null; let scopedResolver: null|typeof i18next.t = null;
return function<T extends Record<string, any>>(key: string, args?: T|null) { return function<T extends Record<string, any>>(key: string, args?: T|null) {