summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-03-06 13:26:33 +0100
committerJoas Schilling <coding@schilljs.com>2020-03-06 13:28:40 +0100
commitf7913f0b3b3b1414c59f40da50a7f0c07d44d10c (patch)
tree4d63769127dab55e89d85fae0f53531b7ad205b4 /src
parentb0ebb7f77e1c6de47651970bd3aaed26d3477b91 (diff)
Correctly use plurals and placeholders
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r--src/components/ImportScreen.vue26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/components/ImportScreen.vue b/src/components/ImportScreen.vue
index e6e665bc..ee58b23b 100644
--- a/src/components/ImportScreen.vue
+++ b/src/components/ImportScreen.vue
@@ -24,10 +24,10 @@
<div class="emptycontent import-screen">
<p class="icon-upload" />
<h3 v-if="stage === 'done'" class="import-screen__header">
- {{ t('contacts', 'Done importing {total} contacts into', { total }) }} {{ addressbook }}
+ {{ importedHeader }}
</h3>
<h3 v-else class="import-screen__header">
- {{ t('contacts', 'Importing {total} contacts into', { total }) }} {{ addressbook }}
+ {{ importingHeader }}
</h3>
<progress :max="total" :value="progress" class="import-screen__progress" />
<p class="import-screen__tracker">
@@ -77,6 +77,28 @@ export default {
? 0
: Math.floor(this.progress / this.total * 100)
},
+
+ importingHeader() {
+ return n('contacts',
+ 'Importing %n contact into {addressbook}',
+ 'Importing %n contacts into {addressbook}',
+ this.total,
+ {
+ addressbook: this.addressbook,
+ }
+ )
+ },
+
+ importedHeader() {
+ return n('contacts',
+ 'Done importing %n contact into {addressbook}',
+ 'Done importing %n contacts into {addressbook}',
+ this.total,
+ {
+ addressbook: this.addressbook,
+ }
+ )
+ },
},
}
</script>