Skip to content

Commit 5543553

Browse files
author
Kartik Raj
committed
Oopsp
1 parent 26c4892 commit 5543553

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/client/common/utils/localize.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'use strict';
55

66
import { FileSystem } from '../platform/fileSystem';
7-
import { getLocalizedString, loadLocalizedStringsUsingNodeFS, shouldLoadUsingFS } from './localizeHelpers';
7+
import { getLocalizedString, loadLocalizedStringsUsingNodeFS, shouldLoadUsingNodeFS } from './localizeHelpers';
88

99
/* eslint-disable @typescript-eslint/no-namespace, no-shadow */
1010

@@ -554,7 +554,7 @@ function localize(key: string, defValue?: string) {
554554
}
555555

556556
function getString(key: string, defValue?: string) {
557-
if (shouldLoadUsingFS()) {
557+
if (shouldLoadUsingNodeFS()) {
558558
loadLocalizedStringsUsingNodeFS(new FileSystem());
559559
}
560560
return getLocalizedString(key, defValue);

src/client/common/utils/localizeHelpers.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ export function _getAskedForCollection(): Record<string, string> {
2929
return askedForCollection;
3030
}
3131

32-
export function shouldLoadUsingFS(): boolean {
33-
// Return a pointer to function so that we refetch it on each call.
32+
export function shouldLoadUsingNodeFS(): boolean {
3433
return !loadedCollection || parseLocale() !== loadedLocale;
3534
}
3635

0 commit comments

Comments
 (0)