chore(i18n): 优化演示中部分国际化消息

pull/2742/head
sight 2025-05-27 00:22:49 +08:00
parent de46f23b06
commit c3e88dc9aa
3 changed files with 3 additions and 27 deletions

View File

@ -389,7 +389,7 @@
{
"alt": "error",
"pid": 3,
"src": "",
"src": "错误提示演示",
},
{
"alt": "universe",

View File

@ -136,19 +136,7 @@ export default {
},
toDateString: {
meridiem: function (hours, minutes) {
var hm = hours * 100 + minutes;
if (hm < 600) {
return 'Midnight';
} else if (hm < 900) {
return 'Morning';
} else if (hm < 1100) {
return 'Forenoon';
} else if (hm < 1300) {
return 'Noon';
} else if (hm < 1800) {
return 'Afternoon';
}
return 'Evening';
return hours < 12 ? 'AM' : 'PM';
}
}
}

View File

@ -135,19 +135,7 @@ export default {
},
toDateString: {
meridiem: function(hours, minutes){
var hm = hours * 100 + minutes;
if (hm < 600) {
return 'Tôt le matin';
} else if (hm < 900) {
return 'Matin';
} else if (hm < 1100) {
return 'Avant-midi';
} else if (hm < 1300) {
return 'Midi';
} else if (hm < 1800) {
return 'Après-midi';
}
return 'Soir';
return hours < 12 ? 'AM' : 'PM';
}
}
}