Skip to content

Commit ad144c5

Browse files
committed
feat: remove no used log
1 parent ee75874 commit ad144c5

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

packages/runtime/plugin-i18n/src/runtime/i18n/detection/index.node.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,8 @@ export const detectLanguage = (
2929
}
3030
return undefined;
3131
} catch (error) {
32-
console.warn('[@modern-js/plugin-i18n] Language detection failed', {
33-
error,
34-
context: 'server-detection',
35-
});
3632
return undefined;
3733
}
3834
}
3935
return undefined;
4036
};
41-
42-
export function exportServerLngToWindow(context: RuntimeContext, lng: string) {
43-
context.__i18nData__ = { lng };
44-
}

packages/runtime/plugin-i18n/src/runtime/i18n/detection/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ export const detectLanguage = (
3131
return result[0];
3232
}
3333
} catch (error) {
34-
console.warn('[@modern-js/plugin-i18n] Language detection failed', {
35-
error,
36-
context: 'browser-detection',
37-
});
3834
return undefined;
3935
}
4036
}

0 commit comments

Comments
 (0)