fixed: 英文文案调整
This commit is contained in:
parent
ab9e1b7e10
commit
38351e6873
@ -6,7 +6,7 @@
|
|||||||
"description": "数字人直播间",
|
"description": "数字人直播间",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --host",
|
"dev": "vite --host",
|
||||||
"dev-test": "vite --host --mode=test",
|
"dev-test": "set APP_LANGUAGE=en-US && vite --host --mode=test",
|
||||||
"dev-lang-en": "set APP_LANGUAGE=en-US && vite --host --mode=lang-en",
|
"dev-lang-en": "set APP_LANGUAGE=en-US && vite --host --mode=lang-en",
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
"build-test": "tsc && vite build --mode=test",
|
"build-test": "tsc && vite build --mode=test",
|
||||||
|
@ -272,9 +272,12 @@
|
|||||||
@apply text-right;
|
@apply text-right;
|
||||||
.btn-to-top {
|
.btn-to-top {
|
||||||
@apply w-[44px] h-[44px] inline-block bg-blue-300 text-center p-0 transition hover:bg-blue-500;
|
@apply w-[44px] h-[44px] inline-block bg-blue-300 text-center p-0 transition hover:bg-blue-500;
|
||||||
min-width: 0;
|
min-width: 0 !important;
|
||||||
border-radius: 50px;
|
border-radius: 50px;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
|
svg{
|
||||||
|
margin-left: 0 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,8 @@
|
|||||||
"news": {
|
"news": {
|
||||||
"delete_confirm": "Are you sure you want to delete this item?",
|
"delete_confirm": "Are you sure you want to delete this item?",
|
||||||
"delete_confirm_count": "Are you sure you want to delete these {{count}} items?",
|
"delete_confirm_count": "Are you sure you want to delete these {{count}} items?",
|
||||||
"delete_description": "This item will be deleted.<br/>It can be recovered from the “news” page. ",
|
"delete_description": "This item will be deleted.<br/>It can be recovered from the \"News\" page. ",
|
||||||
|
"delete_description_count": "These item will be deleted.<br/>It can be recovered from the \"News\" page. ",
|
||||||
"delete_empty": "Please select the items to delete",
|
"delete_empty": "Please select the items to delete",
|
||||||
"download_empty": "Please select the news to download",
|
"download_empty": "Please select the news to download",
|
||||||
"download_failed": "Download failed!",
|
"download_failed": "Download failed!",
|
||||||
@ -72,14 +73,14 @@
|
|||||||
"push_streaming": "Pushing...",
|
"push_streaming": "Pushing...",
|
||||||
"push_success": "Push success",
|
"push_success": "Push success",
|
||||||
"push_to_edit": "Editing",
|
"push_to_edit": "Editing",
|
||||||
"pushed": "Pushed",
|
"pushed": "Editing",
|
||||||
"search_key_title": "Please enter title keywords",
|
"search_key_title": "Please enter title keywords",
|
||||||
"source": "source",
|
"source": "Source",
|
||||||
"title": "News content",
|
"title": "News content",
|
||||||
"title_image_count": "Number of pictures",
|
"title_image_count": "No. of images",
|
||||||
"title_operate": "",
|
"title_operate": "",
|
||||||
"title_time": "time",
|
"title_time": "Time stamp",
|
||||||
"title_word_count": "Wordcount",
|
"title_word_count": "Word count",
|
||||||
"edit_digital_text": "MetaHuman Material",
|
"edit_digital_text": "MetaHuman Material",
|
||||||
"edit_other_text": "Other media Material",
|
"edit_other_text": "Other media Material",
|
||||||
"edit_generate_video_again": "Regenerate",
|
"edit_generate_video_again": "Regenerate",
|
||||||
@ -105,7 +106,7 @@
|
|||||||
"cancel": "Cancel",
|
"cancel": "Cancel",
|
||||||
"confirm_text": "Confirm",
|
"confirm_text": "Confirm",
|
||||||
"select": {
|
"select": {
|
||||||
"pushed": "Pushed: {{count}}",
|
"pushed": "Pushed: {{count}}",
|
||||||
"select_all": "Select all",
|
"select_all": "Select all",
|
||||||
"selected": "Selected",
|
"selected": "Selected",
|
||||||
"selected_some": "Selected: {{count}}",
|
"selected_some": "Selected: {{count}}",
|
||||||
@ -125,14 +126,16 @@
|
|||||||
},
|
},
|
||||||
"video": {
|
"video": {
|
||||||
"delete_confirm_title": "Are you sure you want to delete this video?",
|
"delete_confirm_title": "Are you sure you want to delete this video?",
|
||||||
"delete_confirm": "These videos will be deleted.<br/> They can be recovered from the “news” page. ",
|
"delete_confirm": "The video will be deleted.<br/> It can be recovered from the \"News\" page. ",
|
||||||
"delete_description": "Are you sure you want to delete these {{count}} videos?",
|
"delete_confirm_count": "These videos will be deleted.<br/> They can be recovered from the \"News\" page. ",
|
||||||
|
"delete_description": "Are you sure you want to delete the video?",
|
||||||
|
"delete_description_count": "Are you sure you want to delete these {{count}} videos?",
|
||||||
"delete_empty": "Select the video you want to delete",
|
"delete_empty": "Select the video you want to delete",
|
||||||
"download": "Download",
|
"download": "Download",
|
||||||
"push_confirm": "Are you sure you want to streaming these video?",
|
"push_confirm": "Are you sure you want to streaming these video?",
|
||||||
"push_empty": "Select the video you want to streaming",
|
"push_empty": "Select the video you want to streaming",
|
||||||
"push_failed": "some video streaming failed!",
|
"push_failed": "some video streaming failed!",
|
||||||
"push_success": "Streaming success,please goto Streaming!",
|
"push_success": "Streaming success,please goto \"Streaming\"!",
|
||||||
"push_to_live": "Streaming",
|
"push_to_live": "Streaming",
|
||||||
"sort_modify_confirm": "Are you change video sequence?",
|
"sort_modify_confirm": "Are you change video sequence?",
|
||||||
"sort_modify_failed": "Video sequence change failed",
|
"sort_modify_failed": "Video sequence change failed",
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
"delete_confirm": "你确定要删除吗?",
|
"delete_confirm": "你确定要删除吗?",
|
||||||
"delete_confirm_count": "你确定要删除选择的 {{count}} 条新闻吗?",
|
"delete_confirm_count": "你确定要删除选择的 {{count}} 条新闻吗?",
|
||||||
"delete_description": "删除后需从新闻素材中重新选择",
|
"delete_description": "删除后需从新闻素材中重新选择",
|
||||||
|
"delete_description_count": "删除后需从新闻素材中重新选择",
|
||||||
"delete_empty": "请选择要删除的新闻",
|
"delete_empty": "请选择要删除的新闻",
|
||||||
"download_empty": "请选择要下载的新闻",
|
"download_empty": "请选择要下载的新闻",
|
||||||
"download_failed": "下载新闻失败,请重试!",
|
"download_failed": "下载新闻失败,请重试!",
|
||||||
@ -126,7 +127,9 @@
|
|||||||
"video": {
|
"video": {
|
||||||
"delete_confirm_title": "你确定要删除此视频吗 ",
|
"delete_confirm_title": "你确定要删除此视频吗 ",
|
||||||
"delete_confirm": "删除后需重新生成视频",
|
"delete_confirm": "删除后需重新生成视频",
|
||||||
|
"delete_confirm_count": "删除后需重新生成视频",
|
||||||
"delete_description": "已选择{{count}}条,确定要全部删除吗?",
|
"delete_description": "已选择{{count}}条,确定要全部删除吗?",
|
||||||
|
"delete_description_count": "已选择{{count}}条,确定要全部删除吗?",
|
||||||
"delete_empty": "请选择要删除的视频",
|
"delete_empty": "请选择要删除的视频",
|
||||||
"download": "下载视频",
|
"download": "下载视频",
|
||||||
"push_confirm": "是否确定一键推流选中新闻视频?",
|
"push_confirm": "是否确定一键推流选中新闻视频?",
|
||||||
|
@ -159,9 +159,17 @@ export default function LibraryIndex() {
|
|||||||
onSuccess={refresh}
|
onSuccess={refresh}
|
||||||
className='bg-gray-300 hover:bg-gray-400 text-white'
|
className='bg-gray-300 hover:bg-gray-400 text-white'
|
||||||
icon={<IconDelete className=""/>}
|
icon={<IconDelete className=""/>}
|
||||||
title={t('video.delete_description',{count:checkedIdArray.length})}
|
title={
|
||||||
|
checkedIdArray.length == 1
|
||||||
|
? t('video.delete_description',{count:checkedIdArray.length})
|
||||||
|
: t('video.delete_description_count',{count:checkedIdArray.length})
|
||||||
|
}
|
||||||
emptyMessage={t('video.delete_empty')}
|
emptyMessage={t('video.delete_empty')}
|
||||||
confirmMessage={<span dangerouslySetInnerHTML={{__html:t('video.delete_confirm')}}></span>}
|
confirmMessage={<span dangerouslySetInnerHTML={{
|
||||||
|
__html: checkedIdArray.length == 1
|
||||||
|
? t('video.delete_confirm')
|
||||||
|
: t('video.delete_confirm_count',{count:checkedIdArray.length})
|
||||||
|
}}></span>}
|
||||||
onProcess={deleteHistories}
|
onProcess={deleteHistories}
|
||||||
>{t('delete_batch')}</ButtonBatch>}
|
>{t('delete_batch')}</ButtonBatch>}
|
||||||
{checkedIdArray?.length > 0 && <ButtonBatch
|
{checkedIdArray?.length > 0 && <ButtonBatch
|
||||||
|
@ -324,7 +324,10 @@ export default function LiveIndex() {
|
|||||||
className='bg-gray-300 hover:bg-gray-400 text-white'
|
className='bg-gray-300 hover:bg-gray-400 text-white'
|
||||||
selected={checkedIdArray}
|
selected={checkedIdArray}
|
||||||
emptyMessage={t('video.delete_empty')}
|
emptyMessage={t('video.delete_empty')}
|
||||||
confirmMessage={t('video.delete_description',{count:checkedIdArray.length})}
|
confirmMessage={checkedIdArray.length > 1?
|
||||||
|
t('video.delete_description_count',{count:checkedIdArray.length})
|
||||||
|
:
|
||||||
|
t('video.delete_description',{count:checkedIdArray.length})}
|
||||||
onSuccess={loadList}
|
onSuccess={loadList}
|
||||||
onProcess={processDeleteVideo}
|
onProcess={processDeleteVideo}
|
||||||
>
|
>
|
||||||
|
@ -30,8 +30,8 @@ export default function ButtonDeleteBatch(props: { ids: Id[];onSuccess?: () => v
|
|||||||
modal.confirm({
|
modal.confirm({
|
||||||
wrapClassName:'root-modal-confirm',
|
wrapClassName:'root-modal-confirm',
|
||||||
icon: <span className="anticon anticon-exclamation-circle"><IconWarningCircle/></span>,
|
icon: <span className="anticon anticon-exclamation-circle"><IconWarningCircle/></span>,
|
||||||
title: t('news.delete_confirm_count',{count:props.ids.length}),
|
title: t(props.ids.length == 1 ?'news.delete_confirm':'news.delete_confirm_count',{count:props.ids.length}),
|
||||||
content: <span dangerouslySetInnerHTML={{__html:t('news.delete_description')}}></span>,
|
content: <span dangerouslySetInnerHTML={{__html:props.ids.length == 1 ?t('news.delete_description') :t('news.delete_description_count')}}></span>,
|
||||||
onOk: handlePush,
|
onOk: handlePush,
|
||||||
centered: true
|
centered: true
|
||||||
})
|
})
|
||||||
|
@ -261,9 +261,16 @@ export default function VideoIndex() {
|
|||||||
onProcess={deleteFromList}
|
onProcess={deleteFromList}
|
||||||
selected={checkedIdArray}
|
selected={checkedIdArray}
|
||||||
emptyMessage={t('video.delete_empty')}
|
emptyMessage={t('video.delete_empty')}
|
||||||
title={t('video.delete_description',{count:checkedIdArray.length})}
|
title={
|
||||||
|
checkedIdArray.length == 1 ? t('video.delete_description',{count:checkedIdArray.length}):
|
||||||
|
t('video.delete_description_count',{count:checkedIdArray.length})
|
||||||
|
}
|
||||||
className='bg-gray-300 hover:bg-gray-400 text-white'
|
className='bg-gray-300 hover:bg-gray-400 text-white'
|
||||||
confirmMessage={t('video.delete_confirm')}
|
confirmMessage={<span dangerouslySetInnerHTML={{
|
||||||
|
__html:checkedIdArray.length == 1?
|
||||||
|
t('video.delete_confirm',{count:checkedIdArray.length}):
|
||||||
|
t('video.delete_confirm_count',{count:checkedIdArray.length})
|
||||||
|
}}></span>}
|
||||||
onSuccess={() => {
|
onSuccess={() => {
|
||||||
showToast(t('delete_success'), 'success')
|
showToast(t('delete_success'), 'success')
|
||||||
loadList()
|
loadList()
|
||||||
|
@ -11,7 +11,7 @@ const DevServerList:{
|
|||||||
'development':'http://192.168.0.231:9999',
|
'development':'http://192.168.0.231:9999',
|
||||||
'lang-en':'https://mh.starbitech.com'
|
'lang-en':'https://mh.starbitech.com'
|
||||||
}
|
}
|
||||||
console.log('build-lang',process.env.APP_LANGUAGE)
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig(({mode}) => {
|
export default defineConfig(({mode}) => {
|
||||||
const devServerHost = DevServerList[mode] || 'http://192.168.0.231:9999'
|
const devServerHost = DevServerList[mode] || 'http://192.168.0.231:9999'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user