Skip to content

Commit

Permalink
Replacing hard-coded value
Browse files Browse the repository at this point in the history
Starting i18n project documentation
  • Loading branch information
Collinbrown95 committed Sep 14, 2020
1 parent f20212c commit 2b65fcc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions docs/advanced/internationalization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Internationalization (i18n)

Internationalization allows for the text content of an application to be translated across multiple languages without changing the source code. This is done by extracting each piece of text content into a generic template for each supported language.

## Nuxt i18n
6 changes: 3 additions & 3 deletions frontend/components/containers/annotation/FilterButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export default {
data() {
return {
items: [
{ title: 'All', param: '' },
{ title: 'Done', param: 'false' },
{ title: 'Undone', param: 'true' }
{ title: this.$t('annotation.filterOption1'), param: '' },
{ title: this.$t('annotation.filterOption2'), param: 'false' },
{ title: this.$t('annotation.filterOption3'), param: 'true' }
]
}
},
Expand Down

0 comments on commit 2b65fcc

Please sign in to comment.