Skip to content

Commit b458968

Browse files
committed
Fix #9
1 parent 2b81bdd commit b458968

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/i18n.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const parseAndReplaceString = (str: string, params: any): string => {
88
let arr;
99
let st: string = str;
1010
while ((arr = reg.exec(str)) !== null) {
11-
console.log(arr);
1211
if (Object.prototype.hasOwnProperty.call(params, arr[1])) {
1312
st = st.replace(arr[0], params[arr[1]]);
1413
} else {
@@ -63,7 +62,6 @@ export const createI18n = (config: I18nConfig): I18nInstance => {
6362
try {
6463
return recursiveRetrieve(key.split("."), pack, params);
6564
} catch (error) {
66-
console.log(error);
6765
console.warn(`Warn(i18n): the keypath '${key}' not found`);
6866
return "";
6967
}

0 commit comments

Comments
 (0)