pds-dev-kit-web-test 2.7.6 → 2.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
export default
|
1
|
+
declare const moduleI18n: import("i18next").i18n;
|
2
|
+
export default moduleI18n;
|
@@ -18,7 +18,9 @@ var i18next_intervalplural_postprocessor_1 = __importDefault(require("i18next-in
|
|
18
18
|
var react_i18next_1 = require("react-i18next");
|
19
19
|
var index_1 = __importDefault(require("./resources/index"));
|
20
20
|
var availableLanguages = ['ko', 'en', 'ja', 'es', 'zh', 'zh-cn', 'zh-hk', 'zh-tw', 'fil'];
|
21
|
-
|
21
|
+
// 완전히 새로운 독립 인스턴스 생성
|
22
|
+
var moduleI18n = i18next_1.default.createInstance();
|
23
|
+
moduleI18n
|
22
24
|
.use(i18next_browser_languagedetector_1.default)
|
23
25
|
.use(i18next_intervalplural_postprocessor_1.default)
|
24
26
|
.use(react_i18next_1.initReactI18next)
|
@@ -30,8 +32,8 @@ i18next_1.default
|
|
30
32
|
lowerCaseLng: true
|
31
33
|
});
|
32
34
|
// override getSuffix method to support plurals in 'ko'
|
33
|
-
var originalGetSuffix =
|
34
|
-
|
35
|
+
var originalGetSuffix = moduleI18n.services.pluralResolver.getSuffix;
|
36
|
+
moduleI18n.services.pluralResolver.getSuffix = function (code, count) {
|
35
37
|
var other = [];
|
36
38
|
for (var _i = 2; _i < arguments.length; _i++) {
|
37
39
|
other[_i - 2] = arguments[_i];
|
@@ -39,6 +41,6 @@ i18next_1.default.services.pluralResolver.getSuffix = function (code, count) {
|
|
39
41
|
if (code === 'ko') {
|
40
42
|
return count > 1 ? '_plural' : '';
|
41
43
|
}
|
42
|
-
return originalGetSuffix.call.apply(originalGetSuffix, __spreadArray([
|
44
|
+
return originalGetSuffix.call.apply(originalGetSuffix, __spreadArray([moduleI18n.services.pluralResolver, code, count], other, false));
|
43
45
|
};
|
44
|
-
exports.default =
|
46
|
+
exports.default = moduleI18n;
|