perf: optimize the naming of locale key

This commit is contained in:
vince
2024-07-10 21:55:16 +08:00
parent 25a1e93ab2
commit 4674380266
59 changed files with 664 additions and 1253 deletions

View File

@@ -43,13 +43,13 @@ const titleText = computed(() => {
return $t('fallback.forbidden');
}
case '404': {
return $t('fallback.page-not-found');
return $t('fallback.pageNotFound');
}
case '500': {
return $t('fallback.internal-error');
return $t('fallback.internalError');
}
case 'offline': {
return $t('fallback.offline-error');
return $t('fallback.offlineError');
}
case 'comming-soon': {
return $t('fallback.coming-soon');
@@ -66,16 +66,16 @@ const descText = computed(() => {
}
switch (props.status) {
case '403': {
return $t('fallback.forbidden-desc');
return $t('fallback.forbiddenDesc');
}
case '404': {
return $t('fallback.page-not-found-desc');
return $t('fallback.pageNotFoundDesc');
}
case '500': {
return $t('fallback.internal-error-desc');
return $t('fallback.internalErrorDesc');
}
case 'offline': {
return $t('fallback.offline-error-desc');
return $t('fallback.offlineErrorDesc');
}
default: {
return '';
@@ -152,7 +152,7 @@ function refresh() {
<slot v-if="$slots.action" name="action"></slot>
<VbenButton v-else-if="showBack" size="lg" @click="back">
<IcRoundArrowBackIosNew class="mr-2" />
{{ $t('common.back-to-home') }}
{{ $t('common.backToHome') }}
</VbenButton>
<VbenButton v-else-if="showRefresh" size="lg" @click="refresh">
<IcRoundRefresh class="mr-2" />