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:
parent
8a25509019
commit
ce4f62d346
23 changed files with 98 additions and 79 deletions
|
@ -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 '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue