Browse Source

lang: add new french translation and new variables

* add new french translations
* add variables to translate to french
* do the necessary treatment for english
pull/1938/head
abdelhak aissat 2 years ago
parent
commit
8e734fab6b
No known key found for this signature in database GPG Key ID: 199CE7289ADFCD97
8 changed files with 40 additions and 9 deletions
  1. 12
      frontend/components/layout/TheHeader.vue
  2. 2
      frontend/components/project/FormCreate.vue
  3. 8
      frontend/i18n/en/home.js
  4. 1
      frontend/i18n/en/projects/overview.js
  5. 8
      frontend/i18n/fr/home.js
  6. 10
      frontend/i18n/fr/projects/comments.js
  7. 5
      frontend/i18n/fr/projects/links.js
  8. 3
      frontend/i18n/fr/projects/settings.js

12
frontend/components/layout/TheHeader.vue

@ -96,15 +96,15 @@ export default {
{ title: this.$t('home.demoSent'), link: 'sentiment-analysis' },
{ title: this.$t('home.demoTranslation'), link: 'translation' },
{
title: 'Intent Detection and Slot Filling',
title: this.$t('home.demoIntenDetectSlotFil'),
link: 'intent-detection-and-slot-filling'
},
{ title: this.$t('home.demoTextToSQL'), link: 'text-to-sql' },
{ title: 'Image Classification', link: 'image-classification' },
{ title: 'Image Captioning', link: 'image-caption' },
{ title: 'Object Detection', link: 'object-detection' },
{ title: 'Polygon Segmentation', link: 'segmentation' },
{ title: 'Speech to Text', link: 'speech-to-text' }
{ title: this.$t('home.demoImageClas'), link: 'image-classification' },
{ title: this.$t('home.demoImageCapt'), link: 'image-caption' },
{ title: this.$t('home.demoObjDetect'), link: 'object-detection' },
{ title: this.$t('home.demoPolygSegm'), link: 'segmentation' },
{ title: this.$t('home.demoSTT'), link: 'speech-to-text' }
],
mdiLogout,
mdiDotsVertical,

2
frontend/components/project/FormCreate.vue

@ -62,7 +62,7 @@
<v-checkbox
v-if="hasSingleLabelOption"
:value="singleClassClassification"
label="Allow single label"
:label="$t('overview.allowSingleLabel')"
@change="updateValue('singleClassClassification', $event === true)"
/>
<v-checkbox

8
frontend/i18n/en/home.js

@ -14,5 +14,11 @@ export default {
demoNER: 'Named Entity Recognition',
demoSent: 'Sentiment Analysis',
demoTranslation: 'Translation',
demoTextToSQL: 'Text to SQL'
demoTextToSQL: 'Text to SQL',
demoIntenDetectSlotFil: 'Intent Detection and Slot Filling',
demoImageClas: 'Image Classification',
demoImageCapt: 'Image Captioning',
demoObjDetect: 'Object Detection',
demoPolygSegm: 'Polygon Segmentation',
demoSTT: 'Speech to Text'
}

1
frontend/i18n/en/projects/overview.js

@ -5,6 +5,7 @@ export default {
textClassification: 'Text Classification',
sequenceLabeling: 'Sequence Labeling',
sequenceToSequence: 'Sequence to sequence',
allowSingleLabel: 'Allow single label',
randomizeDocOrder: 'Randomize document order',
shareAnnotations: 'Share annotations across all users',
delete: 'Delete',

8
frontend/i18n/fr/home.js

@ -14,5 +14,11 @@ export default {
demoNER: "Reconnaissance d'entités nommées",
demoSent: 'Analyse du sentiment',
demoTranslation: 'Traduction',
demoTextToSQL: 'Texte à SQL'
demoTextToSQL: 'Texte à SQL',
demoIntenDetectSlotFil: "Détection d'intentions et remplissage de vides",
demoImageClas: "Classification d'images",
demoImageCapt: "Sous-titrage d'images",
demoObjDetect: "Détection d'objet",
demoPolygSegm: 'Segmentation de polygones',
demoSTT: 'Synthèse vocale'
}

10
frontend/i18n/fr/projects/comments.js

@ -0,0 +1,10 @@
export default {
comments: 'Commentaires',
removeComment: 'Supprimer Commentaire',
removePrompt: 'Êtes-vous sûr de vouloir supprimer ces commentaires ?',
commentView: 'Afficher',
created_at: 'Crée à',
document: 'Document',
send: 'Envoyer',
message: 'Message'
}

5
frontend/i18n/fr/projects/links.js

@ -0,0 +1,5 @@
export default {
createLink: 'Créer Lien',
linkName: 'Nom du lien',
linkMessage: 'Le nom du lien est requis'
}

3
frontend/i18n/fr/projects/settings.js

@ -0,0 +1,3 @@
export default {
title: 'Paramètres'
}
Loading…
Cancel
Save