Skip to content

Commit

Permalink
feat(ui-i18n): correct french keys
Browse files Browse the repository at this point in the history
  • Loading branch information
skamril committed Nov 6, 2024
1 parent 097a10b commit 9f83795
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions webapp/public/locales/fr/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@
"study.configuration.tsManagement.status.toBeGenerated": "À générer",
"study.configuration.tsManagement.status.readyMade": "Prête à l'emploi",
"study.configuration.tsManagement.generateTs": "Générer les TS",
"study.configuration.tsManagement.generateTs.error": "Échec de l'exécution de la tâche de génération de TS",
"study.configuration.tsManagement.generateTs.pending": "Lancement de la tâche de génération de TS...",
"study.configuration.tsManagement.generateTs.error": "Échec de l'exécution de la tâche de génération des TS",
"study.configuration.tsManagement.generateTs.pending": "Lancement de la tâche de génération des TS...",
"study.configuration.optimization.legend.general": "Générale",
"study.configuration.optimization.legend.links": "Liens",
"study.configuration.optimization.legend.thermalClusters": "Cluster thermiques",
Expand Down
6 changes: 3 additions & 3 deletions webapp/src/components/App/Singlestudy/FreezeStudy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const BLOCKING_TASK_TYPES = [
] as const;

const PROGRESS_INDETERMINATE = -1;
const PROGRESS_COMPLETED = 100;
const PROGRESS_COMPLETE = 100;

function getChannel(id: TaskDTO["id"]) {
return WsChannel.Task + id;
Expand All @@ -64,7 +64,7 @@ function FreezeStudy({ studyId }: Props) {
const [blockingTasks, setBlockingTasks] = useState<BlockingTask[]>([]);
const { t } = useTranslation();
const hasLoadingTask = !!blockingTasks.find(
(task) => task.progress !== PROGRESS_COMPLETED && task.error === undefined,
(task) => task.progress !== PROGRESS_COMPLETE && task.error === undefined,
);
const blockingTasksRef = useAutoUpdateRef(blockingTasks);

Expand Down Expand Up @@ -144,7 +144,7 @@ function FreezeStudy({ studyId }: Props) {
const { id } = event.payload;
setBlockingTasks((tasks) =>
tasks.map((task) =>
task.id === id ? { ...task, progress: PROGRESS_COMPLETED } : task,
task.id === id ? { ...task, progress: PROGRESS_COMPLETE } : task,
),
);
unsubscribeWsChannels(getChannel(id));
Expand Down

0 comments on commit 9f83795

Please sign in to comment.