Skip to content

Commit feccc94

Browse files
authored
Localization: "survey-creator-core" doesn't export the getLocaleStrings() method fix #6689 (#6713)
1 parent 94d55d7 commit feccc94

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/survey-creator-core/src/editorLocalization.ts

+4
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,10 @@ export function getLocString(strName: string, locale: string = null) {
344344
return editorLocalization.getString(strName, locale);
345345
}
346346

347+
export function getLocaleStrings(loc: string): any {
348+
return editorLocalization.getLocaleStrings(loc);
349+
}
350+
347351
export var defaultStrings = enStrings;
348352
export function setupLocale(localeConfig: { localeCode: string, strings: any }): void {
349353
editorLocalization.setupLocale(localeConfig.localeCode, localeConfig.strings);

packages/survey-creator-core/src/entries/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Version = `${process.env.VERSION}`;
55
import "../utils/context-button.scss";
66

77
export { enStrings } from "../localization/english";
8-
export { editorLocalization, defaultStrings } from "../editorLocalization";
8+
export { editorLocalization, defaultStrings, getLocaleStrings } from "../editorLocalization";
99
export { editorLocalization as localization } from "../editorLocalization";
1010
export * from "../creator-settings";
1111
export { ICreatorOptions } from "../creator-options";

0 commit comments

Comments
 (0)