From fa60cab58700842179f92d3bd74c254898995bd5 Mon Sep 17 00:00:00 2001 From: rjohny55 <168018528+rjohny55@users.noreply.github.com> Date: Sat, 1 Mar 2025 03:59:03 +0600 Subject: [PATCH] Create ru_RU.ts --- src/locales/ru_RU.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/locales/ru_RU.ts diff --git a/src/locales/ru_RU.ts b/src/locales/ru_RU.ts new file mode 100644 index 00000000..7b2a5629 --- /dev/null +++ b/src/locales/ru_RU.ts @@ -0,0 +1,19 @@ +/** + * @description The directory name used in require.context must match the language configuration names defined in lang-config-map.ts. + * @example Directories like 'en-US' or 'zh-CN' should correspond exactly to the configuration names in lang-config-map.ts. + */ + +// @ts-ignore +const requireContext = require.context(`./ru-RU`, false, /\.ts$/); + +let languageConfig: Record = {}; + +requireContext.keys().forEach((fileName: any) => { + const moduleConfig = requireContext(fileName).default; + languageConfig = { + ...languageConfig, + ...moduleConfig + }; +}); + +export default languageConfig;