Add example of n function

This commit is contained in:
Klaus 2020-09-09 11:36:58 +02:00 committed by GitHub
parent c867bf4423
commit 65ca339f34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,6 +120,7 @@ There are global functions **t()** and **n()** available for translating strings
t('myapp', 'Hello World!');
t('myapp', '{name} is available. Get {linkstart}more information{linkend}}', {name: 'Nextcloud 16', linkstart: '<a href="...">', linkend: '</a>'});
n('myapp', 'Import %n calendar into {collection}', 'Import %n calendars into {collection}', selectionLength, {collection: 'Nextcloud'});