diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-07-10 14:16:45 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-07-15 09:28:12 +0200 |
commit | 0c35218e61eea0cb375ebd8817fd08a2d72ca521 (patch) | |
tree | a8e538198f57dce92aa0017233ec81ebff65f688 /apps | |
parent | 35bdb998ef7bc1a52c8cd3a28ee727f874dde557 (diff) | |
download | nextcloud-server-0c35218e61eea0cb375ebd8817fd08a2d72ca521.tar.gz nextcloud-server-0c35218e61eea0cb375ebd8817fd08a2d72ca521.zip |
Include name in translatable greeting
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dashboard/src/App.vue | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/dashboard/src/App.vue b/apps/dashboard/src/App.vue index e7dc09e773c..87c76a603b4 100644 --- a/apps/dashboard/src/App.vue +++ b/apps/dashboard/src/App.vue @@ -1,6 +1,6 @@ <template> <div id="app-dashboard"> - <h2>{{ greeting.icon }} {{ greeting.text }}, {{ name }}</h2> + <h2>{{ greeting.icon }} {{ greeting.text }}</h2> <div class="panels"> <div v-for="panel in panels" :key="panel.id" class="panel"> @@ -37,18 +37,18 @@ export default { const time = this.timer.getHours() if (time > 18) { - return { icon: '🌙', text: t('dashboard', 'Good evening') } + return { icon: '🌙', text: t('dashboard', 'Good evening, {name}', { name: this.name }) } } if (time > 12) { - return { icon: '☀', text: t('dashboard', 'Good afternoon') } + return { icon: '☀', text: t('dashboard', 'Good afternoon, {name}', { name: this.name }) } } if (time === 12) { - return { icon: '🍽', text: t('dashboard', 'Time for lunch') } + return { icon: '🍽', text: t('dashboard', 'Time for lunch, {name}', { name: this.name }) } } if (time > 5) { - return { icon: '🌄', text: t('dashboard', 'Good morning') } + return { icon: '🌄', text: t('dashboard', 'Good morning, {name}', { name: this.name }) } } - return { icon: '🦉', text: t('dashboard', 'Have a night owl') } + return { icon: '🦉', text: t('dashboard', 'Have a night owl, {name}', { name: this.name }) } }, }, watch: { |