forked from AkkomaGang/akkoma-fe
Merge pull request 'hotfix: translation' (#207) from develop into stable
Reviewed-on: AkkomaGang/pleroma-fe#207
This commit is contained in:
commit
80a519d7e4
3 changed files with 10 additions and 6 deletions
|
@ -54,7 +54,7 @@
|
|||
class="button button-unstyled dropdown-header"
|
||||
@click="toggleStatuses"
|
||||
>
|
||||
{{ this.statuses.length + ' ' + $t('moderation.reports.statuses') }}
|
||||
{{ $tc('moderation.reports.statuses', statuses.length - 1, { count: statuses.length }) }}
|
||||
<FAIcon
|
||||
class="timelines-chevron"
|
||||
fixed-width
|
||||
|
@ -81,7 +81,7 @@
|
|||
class="button button-unstyled dropdown-header"
|
||||
@click="toggleNotes"
|
||||
>
|
||||
{{ this.notes.length + ' ' + $t('moderation.reports.notes') }}
|
||||
{{ $tc('moderation.reports.notes', notes.length - 1, { count: notes.length }) }}
|
||||
<FAIcon
|
||||
class="timelines-chevron"
|
||||
fixed-width
|
||||
|
|
|
@ -105,8 +105,12 @@ const GeneralTab = {
|
|||
return this.$store.getters.mergedConfig.profileVersion
|
||||
},
|
||||
translationLanguages () {
|
||||
const langs = this.$store.state.instance.supportedTranslationLanguages || { source: [] }
|
||||
const langs = this.$store.state.instance.supportedTranslationLanguages
|
||||
if (langs && langs.source) {
|
||||
return langs.source.map(lang => ({ key: lang.code, value: lang.code, label: lang.name }))
|
||||
}
|
||||
|
||||
return []
|
||||
},
|
||||
translationLanguage: {
|
||||
get: function () { return this.$store.getters.mergedConfig.translationLanguage },
|
||||
|
|
|
@ -283,13 +283,13 @@
|
|||
"delete_note_title": "Confirm deletion",
|
||||
"no_content": "No description given",
|
||||
"note_placeholder": "Leave a note...",
|
||||
"notes": "notes",
|
||||
"notes": "{ count } note | { count } notes",
|
||||
"reopen": "Reopen",
|
||||
"report": "Report on",
|
||||
"reports": "Reports",
|
||||
"resolve": "Resolve",
|
||||
"show_closed": "Show closed",
|
||||
"statuses": "statuses",
|
||||
"statuses": "{ count } status | { count } statuses",
|
||||
"tag_policy_notice": "Enable the TagPolicy MRF to set post restrictions",
|
||||
"tags": "Set post restrictions"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue