refactor: 제작리소스 업데이트, 푸터 zh-tw 연령등급 추가
This commit is contained in:
@@ -211,7 +211,7 @@ import type {
|
||||
DevCiConfig,
|
||||
} from '#layers/types/Common'
|
||||
|
||||
const { tm }: any = useI18n()
|
||||
const { tm, locale }: any = useI18n()
|
||||
|
||||
const gameDataStore = useGameDataStore()
|
||||
const { gameData } = storeToRefs(gameDataStore)
|
||||
@@ -232,15 +232,17 @@ const setDevCi = ref<DevCiConfig>({
|
||||
const getGameRatingImage = computed((): string[] => {
|
||||
const contentInfo = footerData.value.game_rating_info.rating_type.split(',')
|
||||
const ageTypeMap: Record<string, string> = {
|
||||
'6': 'Type6',
|
||||
'12': 'Type12',
|
||||
'15': 'Type15',
|
||||
'18': 'Type18',
|
||||
'19': 'Type19',
|
||||
all: 'TypeAll',
|
||||
e: 'TypeExempt',
|
||||
}
|
||||
return contentInfo.map(item => {
|
||||
const type = ageTypeMap[item] || 'TypeTest'
|
||||
return getImageHost(`/images/common/grades_age/${type}.svg`, {
|
||||
return getImageHost(`/images/common/grades_age/${locale.value}/${type}.svg`, {
|
||||
imageType: 'common',
|
||||
})
|
||||
})
|
||||
@@ -279,6 +281,7 @@ const toggleAgeRating = (): void => {
|
||||
|
||||
const footerAgeRatingInfo = computed((): string[] => {
|
||||
const info = (tm as any)('Footer_AgeRating_Info')
|
||||
console.log("🚀 ~ info:", info)
|
||||
return Array.isArray(info) ? info : []
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user