1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 06:39:43 +02:00

[WIP] i18n strings

This commit is contained in:
McMatts 2022-03-01 22:03:18 -05:00
parent 8a25509019
commit ce4f62d346
23 changed files with 98 additions and 79 deletions

View file

@ -57,13 +57,15 @@ export default Model.extend({
lifecycleLabel: computed('lifecycle', function () {
let constants = this.get('constants');
let i18n = this.get('i18n');
switch (this.get('lifecycle')) {
case constants.Lifecycle.Draft:
return constants.Lifecycle.DraftLabel;
return i18n.localize('draft');
case constants.Lifecycle.Live:
return constants.Lifecycle.LiveLabel;
return i18n.localize('live');
case constants.Lifecycle.Archived:
return constants.Lifecycle.ArchivedLabel;
return i18n.localize('archived');
}
return '';