fix: I18n string update (#13588)

* i18n string updates (issue #9210)

* change offHand to offHandCapitalized

* added removeTasks to challenge.json

* added hairBangs back to character.json

* added hairBangs back to character.json

* more hairBangs nonsense

* added hairBangs to hair-settings.vue, removed same from character.json

* changed levelUp to levelup in levelUp.vue and achievements.json

* fix duplicate string values

* fixed different strings with same content in different files

* updated test/api/v3 and test/api/v4 with messageTaskNotFound

* Delete POST-tasks_taskId_checklist_itemId_score.test.js

File got copied to a new directory, doesn't need to be here.

* fix: userID token in patrons.vue and heroes.vue

* removed: unused clock of code

* Restored eggsItemType to inventory.json

Co-authored-by: Sabe Jones <sabrecat@gmail.com>
This commit is contained in:
Natalie L
2021-11-04 17:33:08 -04:00
committed by GitHub
parent 56ac23bea6
commit 5d87c2af13
70 changed files with 116 additions and 151 deletions

View File

@@ -144,7 +144,7 @@ api.groupMoveTask = {
const to = Number(req.params.position);
if (!task) {
throw new NotFound(res.t('taskNotFound'));
throw new NotFound(res.t('messageTaskNotFound'));
}
if (task.type === 'todo' && task.completed) throw new BadRequest(res.t('cantMoveCompletedTodo'));
@@ -197,7 +197,7 @@ api.assignTask = {
const task = await Tasks.Task.findByIdOrAlias(taskId, user._id);
if (!task) {
throw new NotFound(res.t('taskNotFound'));
throw new NotFound(res.t('messageTaskNotFound'));
}
if (!task.group.id) {
@@ -272,7 +272,7 @@ api.unassignTask = {
const task = await Tasks.Task.findByIdOrAlias(taskId, user._id);
if (!task) {
throw new NotFound(res.t('taskNotFound'));
throw new NotFound(res.t('messageTaskNotFound'));
}
if (!task.group.id) {
@@ -332,7 +332,7 @@ api.approveTask = {
}).exec();
if (!task) {
throw new NotFound(res.t('taskNotFound'));
throw new NotFound(res.t('messageTaskNotFound'));
}
const fields = requiredGroupFields.concat(' managers');
@@ -440,7 +440,7 @@ api.taskNeedsWork = {
]);
if (!task) {
throw new NotFound(res.t('taskNotFound'));
throw new NotFound(res.t('messageTaskNotFound'));
}
const fields = requiredGroupFields.concat(' managers');