Skip to content

Commit

Permalink
- ADD: Re-added Vietnamese translation.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-raubach committed Nov 21, 2023
1 parent b13fdd6 commit ecf6cea
Show file tree
Hide file tree
Showing 7 changed files with 202 additions and 180 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gridscore",
"version": "2.4.0",
"version": "2.4.1",
"private": false,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
6 changes: 3 additions & 3 deletions src/components/TraitInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@
:max="(trait.restrictions && trait.restrictions.max !== null && trait.restrictions.max !== undefined) ? trait.restrictions.max : null"
:step="0.02" />
<!-- For categorical traits -->
<!-- If there are more than 3 options, show a dropdown select -->
<b-form-select :id="id" v-else-if="trait.dataType === 'categorical' && trait.restrictions && trait.restrictions.categories && trait.restrictions.categories.length > 3" ref="input" :state="formState"
<!-- If there are more than 4 options, show a dropdown select -->
<b-form-select :id="id" v-else-if="trait.dataType === 'categorical' && trait.restrictions && trait.restrictions.categories && trait.restrictions.categories.length > 4" ref="input" :state="formState"
v-model="value"
:readonly="!editable"
:options="traitOptionsSelect"
@change="tts" />
<!-- Else show a button group for easier selection -->
<b-form-radio-group :id="id" v-else-if="trait.dataType === 'categorical' && trait.restrictions && trait.restrictions.categories && trait.restrictions.categories.length <= 3" ref="input" :state="formState"
<b-form-radio-group :id="id" v-else-if="trait.dataType === 'categorical' && trait.restrictions && trait.restrictions.categories && trait.restrictions.categories.length <= 4" ref="input" :state="formState"
buttons
button-variant="outline-secondary"
@change="event => { value = event; tts() }"
Expand Down
11 changes: 11 additions & 0 deletions src/plugins/changelog/de_DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -312,5 +312,16 @@
"text": "Fehler beim importieren von Teilcodes behoben wo fälschlicherweise eine Übereinstimmung mit einem lokalen Versuch angezeigt wird."
}
]
},
{
"version": "2.4.1",
"date": "2023-11-21",
"items": [
{
"type": "new",
"title": "Vietnamesische Übersetzung",
"text": "Dank unseres Kollaborateurs Huu Loi Nguyen haben wir eine vietnamesische Übersetzung zu GridScore hinzugefügt."
}
]
}
]
11 changes: 11 additions & 0 deletions src/plugins/changelog/en_GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -312,5 +312,16 @@
"text": "Fixed a bug where importing a share code would falsely report a local match where there isn't one."
}
]
},
{
"version": "2.4.1",
"date": "2023-11-21",
"items": [
{
"type": "new",
"title": "Vietnamese translation",
"text": "Thanks to our collaborator Huu Loi Nguyen, we have now added a Vietnamese translation to GridScore."
}
]
}
]
2 changes: 1 addition & 1 deletion src/plugins/constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const gridScoreVersion = '2.4.0'
const gridScoreVersion = '2.4.1'

const NAVIGATION_MODE_DRAG = 'DRAG'
const NAVIGATION_MODE_JUMP = 'JUMP'
Expand Down
16 changes: 8 additions & 8 deletions src/plugins/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import VueI18n from 'vue-i18n'

import deDE from '@/plugins/i18n/de_DE.json'
import enGB from '@/plugins/i18n/en_GB.json'
// import viVN from '@/plugins/i18n/vi_VN.json'
import viVN from '@/plugins/i18n/vi_VN.json'
// import arMA from '@/plugins/i18n/ar_MA.json'

const locales = [{
Expand All @@ -16,11 +16,11 @@ const locales = [{
name: 'Deutsch - Deutschland',
direction: 'ltr',
icon: '🇩🇪'
// }, {
// locale: 'vi-VN',
// name: 'Tiếng Việt',
// direction: 'ltr',
// icon: '🇻🇳'
}, {
locale: 'vi-VN',
name: 'Tiếng Việt',
direction: 'ltr',
icon: '🇻🇳'
// }, {
// locale: 'ar-MA',
// name: 'العربية - المغرب',
Expand All @@ -32,8 +32,8 @@ Vue.use(VueI18n)

const messages = {
'en-GB': enGB,
'de-DE': deDE
// 'vi-VN': viVN
'de-DE': deDE,
'vi-VN': viVN
// 'ar-MA': arMA
}

Expand Down
Loading

0 comments on commit ecf6cea

Please sign in to comment.