Skip to content

Commit

Permalink
#57 translate element of tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcellino-Palerme committed Nov 15, 2024
1 parent fbcbe61 commit f7e18d5
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 7 deletions.
6 changes: 3 additions & 3 deletions components/FormMolecule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ function modify() {
<!-- field to indicate searched molecule -->
<v-text-field
v-model="searchMolecule"
label="t(label.search)"
:label="t('label.search')"
:loading="loading"
required
/>
Expand Down Expand Up @@ -418,7 +418,7 @@ function modify() {
<v-text-field
v-if="props.action != 'view'"
v-model="newSynonym"
label="t(label.synonym)"
:label="t('label.synonym')"
required
:rules="synRules"
>
Expand Down Expand Up @@ -458,7 +458,7 @@ function modify() {
<v-text-field
v-if="props.action != 'view'"
v-model="searchEquivalents"
label="t(label.search)"
:label="t('label.search')"
:loading="loading"
required
/>
Expand Down
18 changes: 17 additions & 1 deletion lang/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
//
// SPDX-License-Identifier: MIT

import { addMolecule } from "~/server/api/molecule/functions";

export default {
button:{
addcompound: "Add reference",
addfitting: "Add fitting",
addmachine: "Add machine",
addview_show_calib_curve: "Add calibration curve",
addview_tab_molecule: "Add molecule",
archive: "Archive",
cancel: "Cancel",
close: "Close",
Expand Down Expand Up @@ -51,11 +54,14 @@ export default {
header:{
action: "Actions",
area: "Area",
concentration: "Concentration",
date_achieve: "Archived",
date_create: "Created ",
description: "Description",
concentration: "Concentration",
equivalent: "Equivalent",
formula: "Formula",
lot: "Séries number",
mass: "Mass",
metabolite: "Metabolite",
m_type: "Type",
name: "Name",
Expand Down Expand Up @@ -98,18 +104,22 @@ export default {
daughterFile: "Add daughter solution",
description: "description",
email: "Email",
formula: "Formula",
files: "Files",
logout: "Logout",
m_type: "type",
mass: "Mass",
nameCalibCurve: "Calibration curve's name",
nbFile: "File's number",
noFile: "No file",
noProject: "No projet",
password: "Password",
profile: "Profile",
project: "Project",
search: "Enter the molecule",
selectCompound: "Select reference",
selectMachine: "Select machine",
synonym: "Enter the synonym",
tabFileName:"Name",
tabSize:"Size (kB)",
tabType:"Type",
Expand Down Expand Up @@ -170,13 +180,19 @@ export default {
},
title:{
addCalibCurve: "Add a calibration curve",
addMolecule: "Add a molecule",
compoundName:"Reference name",
confirmBox: "Confirmation",
daughter:"Daughter solution",
equivalent: "Equivalent",
machine:"Machine",
modifyCalibCurve: "Modify calibration curve",
modifyMolecule: "Modify molecule",
molecule: "Molecule",
mother:"Mother solution",
projectName: "Projet name",
synonyms: "Synonyms",
viewCalibCurve: "View calibration curve",
viewMolecule: "View molecule",
}
};
18 changes: 16 additions & 2 deletions lang/fr-FR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default {
addfitting: "Ajout d'un ajustement",
addmachine: "Ajout d'une machine",
addview_show_calib_curve: "Ajouter une gamme",
addview_tab_molecule: "Ajouter une molécule",
archive: "Archiver",
cancel: "Annuler",
close: "Fermer",
Expand Down Expand Up @@ -51,11 +52,14 @@ export default {
header:{
action: "Actions",
area: "Aire",
concentration: "Concentration",
date_achieve: "Archivé le",
date_create: "Créé le ",
description: "Description",
concentration: "Concentration",
equivalent: "Équivalence",
formula: "Formule",
lot: "N° lot",
mass: "Masse",
metabolite: "Métabolite",
name: "Nom",
name_compound: "Témoin",
Expand Down Expand Up @@ -97,17 +101,21 @@ export default {
description: "description",
email: "E-mail",
files: "Fichiers",
formula: "Formule",
logout: "Déconnexion",
m_type: "type",
mass: "Masse",
nameCalibCurve: "Nom de la gamme",
nbFile: "Nb de fichiers",
noFile: "Pas de fichier",
noProject: "Aucun projet",
password: "Mot de passe",
profile: "Profile",
project: "Projet",
search: "Entrer la molécule",
selectCompound: "Selectionner le témoin",
selectMachine: "Selectionner la machine",
synonym: "Entrer le synonyme",
tabFileName: "Nom",
tabSize: "Taille (kO)",
tabType: "Type",
Expand Down Expand Up @@ -168,14 +176,20 @@ export default {
},
title: {
addCalibCurve: "Ajout d'une gamme",
addMolecule: "Ajout d'une molécule",
compoundName:"Nom du témoin",
confirmBox: "Confirmation",
daughter:"Solution fille",
equivalent: "Équivalences",
machine:"Machine",
modifyCalibCurve: "Modifier la gamme",
modifyMolecule: "Modifier la molécule",
molecule: "Molécule",
mother:"Solution mère",
projectName: "Nom du projet",
viewCalibCurve: "Détails de la gamme"
synonyms: "Synonymes",
viewCalibCurve: "Détails de la gamme",
viewMolecule: "Détails de la molécule",
}

};
1 change: 0 additions & 1 deletion test/server/molecule.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import * as mol from "~/server/api/molecule/functions";
import { expect, test, describe, vi, type Mock } from 'vitest';
import { config } from '@vue/test-utils';
import { queryDatabase } from "~/server/api/function/database";
import eslintConfig from "~/eslint.config.mjs";


// Mock queryDatabase
Expand Down

0 comments on commit f7e18d5

Please sign in to comment.