We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b81bdd commit b458968Copy full SHA for b458968
src/i18n.ts
@@ -8,7 +8,6 @@ const parseAndReplaceString = (str: string, params: any): string => {
8
let arr;
9
let st: string = str;
10
while ((arr = reg.exec(str)) !== null) {
11
- console.log(arr);
12
if (Object.prototype.hasOwnProperty.call(params, arr[1])) {
13
st = st.replace(arr[0], params[arr[1]]);
14
} else {
@@ -63,7 +62,6 @@ export const createI18n = (config: I18nConfig): I18nInstance => {
63
62
try {
64
return recursiveRetrieve(key.split("."), pack, params);
65
} catch (error) {
66
- console.log(error);
67
console.warn(`Warn(i18n): the keypath '${key}' not found`);
68
return "";
69
}
0 commit comments