NEZ-3008 fix:页面初始化时 zoom弹窗国际化错误
This commit is contained in:
@@ -54,7 +54,6 @@ export default {
|
||||
let lastPixelRatio = originPixelRatio
|
||||
const currentPixelRatio = window.devicePixelRatio
|
||||
if (currentPixelRatio !== lastPixelRatio) {
|
||||
// console.log('缩放比例是:' + Math.round(1000 * (currentPixelRatio / originPixelRatio)) / 10 + '%');
|
||||
// 计算缩放百分比
|
||||
const zoom = Math.round(1000 * (currentPixelRatio / originPixelRatio)) / 10 + '%'
|
||||
if (zoom != '100%') {
|
||||
|
||||
@@ -93,6 +93,10 @@ const newcn = {
|
||||
disabled: '已禁用',
|
||||
unavailable: '不可用'
|
||||
},
|
||||
tip: {
|
||||
zoomStatusPrompt: '您的浏览器目前处于缩放状态,页面可能会出现错位,建议100%大小。',
|
||||
doNotAskAgain: '不再询问'
|
||||
},
|
||||
...zhLocale
|
||||
}
|
||||
export default newcn
|
||||
|
||||
@@ -101,6 +101,10 @@ const newen = {
|
||||
disabled: 'Disabled',
|
||||
unavailable: 'Unavailable'
|
||||
},
|
||||
tip: {
|
||||
zoomStatusPrompt: 'Your browser is currently in zoom state, the page may appear dislocation, the proposed 100% size.',
|
||||
doNotAskAgain: 'Do not ask again'
|
||||
},
|
||||
...enLocale
|
||||
}
|
||||
export default newen
|
||||
|
||||
Reference in New Issue
Block a user