mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #53698 from nextcloud/fix/pronouns-translation
fix(settings): translate pronounce account property
This commit is contained in:
commit
a28526dd63
3 changed files with 16 additions and 14 deletions
|
|
@ -8,16 +8,18 @@
|
|||
:placeholder="randomPronounsPlaceholder" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import type { IAccountProperty } from '../../constants/AccountPropertyConstants.ts'
|
||||
|
||||
import { loadState } from '@nextcloud/initial-state'
|
||||
|
||||
import { t } from '@nextcloud/l10n'
|
||||
import { defineComponent } from 'vue'
|
||||
import AccountPropertySection from './shared/AccountPropertySection.vue'
|
||||
import { NAME_READABLE_ENUM } from '../../constants/AccountPropertyConstants.ts'
|
||||
|
||||
import { NAME_READABLE_ENUM } from '../../constants/AccountPropertyConstants.js'
|
||||
const { pronouns } = loadState<{ pronouns: IAccountProperty }>('settings', 'personalInfoParameters')
|
||||
|
||||
const { pronouns } = loadState('settings', 'personalInfoParameters', {})
|
||||
|
||||
export default {
|
||||
export default defineComponent({
|
||||
name: 'PronounsSection',
|
||||
|
||||
components: {
|
||||
|
|
@ -33,13 +35,13 @@ export default {
|
|||
computed: {
|
||||
randomPronounsPlaceholder() {
|
||||
const pronouns = [
|
||||
this.t('settings', 'she/her'),
|
||||
this.t('settings', 'he/him'),
|
||||
this.t('settings', 'they/them'),
|
||||
t('settings', 'she/her'),
|
||||
t('settings', 'he/him'),
|
||||
t('settings', 'they/them'),
|
||||
]
|
||||
const pronounsExample = pronouns[Math.floor(Math.random() * pronouns.length)]
|
||||
return this.t('settings', `Your pronouns. E.g. ${pronounsExample}`, { pronounsExample })
|
||||
return t('settings', 'Your pronouns. E.g. {pronounsExample}', { pronounsExample })
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
|
|
|||
4
dist/settings-vue-settings-personal-info.js
vendored
4
dist/settings-vue-settings-personal-info.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue