localized templates folder name

pull/1856/head
antelle 2021-04-08 20:09:25 +02:00
parent b4f0149bd8
commit 81c7d57f30
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
2 changed files with 4 additions and 1 deletions

View File

@ -14,6 +14,7 @@
"or": "or",
"history": "history",
"template": "template",
"templates": "templates",
"notImplemented": "Not Implemented",
"saveChanges": "Save changes",
"discardChanges": "Discard changes",

View File

@ -9,6 +9,8 @@ import { AppSettingsModel } from 'models/app-settings-model';
import { IconUrlFormat } from 'util/formatting/icon-url-format';
import { Logger } from 'util/logger';
import { mapObject } from 'util/fn';
import { Locale } from 'util/locale';
import { StringFormat } from 'util/formatting/string-format';
import { ChalRespCalculator } from 'comp/app/chal-resp-calculator';
const logger = new Logger('file');
@ -431,7 +433,7 @@ class FileModel extends Model {
createEntryTemplatesGroup() {
const rootGroup = this.groups[0];
const templatesGroup = GroupModel.newGroup(rootGroup, this);
templatesGroup.setName('Templates');
templatesGroup.setName(StringFormat.capFirst(Locale.templates));
this.db.meta.entryTemplatesGroup = templatesGroup.group.uuid;
this.reload();
return templatesGroup;