NEZ-3008 fix:页面初始化时 zoom弹窗国际化错误

This commit is contained in:
zyh
2023-07-24 11:37:57 +08:00
parent 2dc3dd7332
commit 53ee6537e0
3 changed files with 8 additions and 1 deletions

View File

@@ -54,7 +54,6 @@ export default {
let lastPixelRatio = originPixelRatio let lastPixelRatio = originPixelRatio
const currentPixelRatio = window.devicePixelRatio const currentPixelRatio = window.devicePixelRatio
if (currentPixelRatio !== lastPixelRatio) { if (currentPixelRatio !== lastPixelRatio) {
// console.log('缩放比例是:' + Math.round(1000 * (currentPixelRatio / originPixelRatio)) / 10 + '%');
// 计算缩放百分比 // 计算缩放百分比
const zoom = Math.round(1000 * (currentPixelRatio / originPixelRatio)) / 10 + '%' const zoom = Math.round(1000 * (currentPixelRatio / originPixelRatio)) / 10 + '%'
if (zoom != '100%') { if (zoom != '100%') {

View File

@@ -93,6 +93,10 @@ const newcn = {
disabled: '已禁用', disabled: '已禁用',
unavailable: '不可用' unavailable: '不可用'
}, },
tip: {
zoomStatusPrompt: '您的浏览器目前处于缩放状态页面可能会出现错位建议100%大小。',
doNotAskAgain: '不再询问'
},
...zhLocale ...zhLocale
} }
export default newcn export default newcn

View File

@@ -101,6 +101,10 @@ const newen = {
disabled: 'Disabled', disabled: 'Disabled',
unavailable: 'Unavailable' 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 ...enLocale
} }
export default newen export default newen