feat(translate): refonte du design de la page de traduction et du sélecteur de moteurs (Etapes 1-3)
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m12s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m12s
This commit is contained in:
@@ -65,6 +65,7 @@ export function useTranslationConfig(hasFile: boolean): UseTranslationConfigRetu
|
||||
const [targetLang, setTargetLang] = useState(settings.defaultTargetLanguage || '');
|
||||
const [provider, setProvider] = useState<Provider | null>(null);
|
||||
const [glossaryId, setGlossaryId] = useState<string | null>(null);
|
||||
const [translateImages, setTranslateImages] = useState(false);
|
||||
const [availableProviders, setAvailableProviders] = useState<AvailableProvider[]>([]);
|
||||
const [isLoadingProviders, setIsLoadingProviders] = useState(false);
|
||||
const [languages, setLanguages] = useState<Language[]>([]);
|
||||
@@ -219,7 +220,8 @@ export function useTranslationConfig(hasFile: boolean): UseTranslationConfigRetu
|
||||
mode,
|
||||
provider: provider ?? undefined,
|
||||
glossaryId,
|
||||
}), [sourceLang, targetLang, mode, provider, glossaryId]);
|
||||
translateImages,
|
||||
}), [sourceLang, targetLang, mode, provider, glossaryId, translateImages]);
|
||||
|
||||
return {
|
||||
sourceLang,
|
||||
@@ -238,6 +240,8 @@ export function useTranslationConfig(hasFile: boolean): UseTranslationConfigRetu
|
||||
setProvider,
|
||||
glossaryId,
|
||||
setGlossaryId,
|
||||
translateImages,
|
||||
setTranslateImages,
|
||||
getConfig,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user