mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Update app/client/lib/localization.ts
Co-authored-by: George Gevoian <85144792+georgegevoian@users.noreply.github.com>
This commit is contained in:
parent
07f5f86620
commit
10ac424514
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user