|
@@ -69,7 +69,9 @@ const VoiceParamConfig: FC = () => {
|
|
>
|
|
>
|
|
<div className={'relative h-9'}>
|
|
<div className={'relative h-9'}>
|
|
<Listbox.Button className={'w-full h-full rounded-lg border-0 bg-gray-100 py-1.5 pl-3 pr-10 sm:text-sm sm:leading-6 focus-visible:outline-none focus-visible:bg-gray-200 group-hover:bg-gray-200 cursor-pointer'}>
|
|
<Listbox.Button className={'w-full h-full rounded-lg border-0 bg-gray-100 py-1.5 pl-3 pr-10 sm:text-sm sm:leading-6 focus-visible:outline-none focus-visible:bg-gray-200 group-hover:bg-gray-200 cursor-pointer'}>
|
|
- <span className={classNames('block truncate text-left', !languageItem?.name && 'text-gray-400')}>{languageItem?.name ?? localLanguagePlaceholder}</span>
|
|
|
|
|
|
+ <span className={classNames('block truncate text-left', !languageItem?.name && 'text-gray-400')}>
|
|
|
|
+ {t(`common.voice.language.${languageItem?.value.replace('-', '')}`) ?? localLanguagePlaceholder}
|
|
|
|
+ </span>
|
|
<span className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2">
|
|
<span className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2">
|
|
<ChevronDownIcon
|
|
<ChevronDownIcon
|
|
className="h-5 w-5 text-gray-400"
|
|
className="h-5 w-5 text-gray-400"
|
|
@@ -97,7 +99,8 @@ const VoiceParamConfig: FC = () => {
|
|
>
|
|
>
|
|
{({ /* active, */ selected }) => (
|
|
{({ /* active, */ selected }) => (
|
|
<>
|
|
<>
|
|
- <span className={classNames('block', selected && 'font-normal')}>{item.name}</span>
|
|
|
|
|
|
+ <span
|
|
|
|
+ className={classNames('block', selected && 'font-normal')}>{t(`common.voice.language.${(item.value).toString().replace('-', '')}`)}</span>
|
|
{(selected || item.value === textToSpeechConfig.language) && (
|
|
{(selected || item.value === textToSpeechConfig.language) && (
|
|
<span
|
|
<span
|
|
className={classNames(
|
|
className={classNames(
|