diff options
author | Louis Chemineau <louis@chmn.me> | 2023-09-14 09:32:50 +0200 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2023-09-14 09:40:20 +0200 |
commit | 79d1870aa7754c3ed15eec0e17cf7c50d45adc2c (patch) | |
tree | 4b31bb54846ed188c34abca31bc6320f4c459022 /apps/files_versions | |
parent | b085803c0bfe8c568e5710525e49d5f6378833b6 (diff) | |
download | nextcloud-server-79d1870aa7754c3ed15eec0e17cf7c50d45adc2c.tar.gz nextcloud-server-79d1870aa7754c3ed15eec0e17cf7c50d45adc2c.zip |
Use t and n for translation
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/src/components/Version.vue | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/files_versions/src/components/Version.vue b/apps/files_versions/src/components/Version.vue index 4fa2836d4ae..20d7f584546 100644 --- a/apps/files_versions/src/components/Version.vue +++ b/apps/files_versions/src/components/Version.vue @@ -137,7 +137,7 @@ import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js' import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip.js' import moment from '@nextcloud/moment' -import { translate } from '@nextcloud/l10n' +import { translate as t } from '@nextcloud/l10n' import { joinPaths } from '@nextcloud/paths' import { getRootUrl } from '@nextcloud/router' import { loadState } from '@nextcloud/initial-state' @@ -226,14 +226,14 @@ export default { if (this.isCurrent) { if (label === '') { - return translate('files_versions', 'Current version') + return t('files_versions', 'Current version') } else { - return `${label} (${translate('files_versions', 'Current version')})` + return `${label} (${t('files_versions', 'Current version')})` } } if (this.isFirstVersion && label === '') { - return translate('files_versions', 'Initial version') + return t('files_versions', 'Initial version') } return label @@ -301,6 +301,8 @@ export default { } this.$emit('compare', { version: this.version }) }, + + t, }, } </script> |