File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed
packages/runtime/plugin-i18n/src/runtime/i18n/detection Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff 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- }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments