Skip to content

Commit

Permalink
chore(web): fix typo in layer style notifications (#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
mulengawilfred authored Jul 24, 2024
1 parent bac6779 commit bb1ceb9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions web/src/services/api/layerStyleApi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ export default () => {
async (input: AddStyleInput): Promise<MutationReturn<AddStyleMutation>> => {
const { data, errors } = await addLayerStyleMutation({ variables: { input } });
if (errors || !data?.addStyle?.style?.id) {
setNotification({ type: "error", text: t("Failed to add layerStyle.") });
setNotification({ type: "error", text: t("Failed to add layer style.") });

return { status: "error", errors };
}
setNotification({ type: "success", text: t("Successfully added a new layerStyle!") });
setNotification({ type: "success", text: t("Successfully added a new layer style!") });

return { data, status: "success" };
},
Expand Down Expand Up @@ -90,11 +90,11 @@ export default () => {
if (!input.styleId) return { status: "error" };
const { data, errors } = await removeLayerStyleMutation({ variables: { input } });
if (errors || !data?.removeStyle) {
setNotification({ type: "error", text: t("Failed to remove the layerStyle.") });
setNotification({ type: "error", text: t("Failed to delete the layer style.") });

return { status: "error", errors };
}
setNotification({ type: "success", text: t("Successfully removed a the layerStyle!") });
setNotification({ type: "success", text: t("Successfully deleted the layer style!") });

return { data, status: "success" };
},
Expand Down
2 changes: 1 addition & 1 deletion web/src/services/api/layersApi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default () => {

return { status: "error", errors };
}
setNotification({ type: "success", text: t("Successfully removed a the layer!") });
setNotification({ type: "success", text: t("Successfully removed the layer!") });

return { data, status: "success" };
},
Expand Down
10 changes: 5 additions & 5 deletions web/src/services/i18n/translations/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,13 +348,13 @@ Failed to move block.: Failed to move block.
Block was successfully moved.: Block was successfully moved.
Successfully updated the layer!: ''
Failed to remove the layer.: ''
Successfully removed a the layer!: ''
Failed to add layerStyle.: ''
Successfully added a new layerStyle!: ''
Successfully removed the layer!: ''
Failed to add layer style.: ''
Successfully added a new layer style!: ''
Failed to update the layerStyle.: ''
Successfully updated a the layerStyle!: ''
Failed to remove the layerStyle.: ''
Successfully removed a the layerStyle!: ''
Failed to delete the layer style.: ''
Successfully deleted the layer style!: ''
Failed to install plugin.: Failed to install plugin.
Successfully installed plugin!: Successfully installed plugin!
Failed to upgrade plugin.: ''
Expand Down
10 changes: 5 additions & 5 deletions web/src/services/i18n/translations/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -327,13 +327,13 @@ Failed to move block.: ブロックの移動に失敗しました。
Block was successfully moved.: ブロックの移動に成功しました。
Successfully updated the layer!: ''
Failed to remove the layer.: レイヤーの削除に失敗しました。
Successfully removed a the layer!: レイヤーの削除に成功しました!
Failed to add layerStyle.: レイヤースタイルの追加に失敗しました。
Successfully added a new layerStyle!: 新しいレイヤースタイルの追加に成功しました!
Successfully removed the layer!: ''
Failed to add layer style.: ''
Successfully added a new layer style!: ''
Failed to update the layerStyle.: レイヤースタイルのアップデートに失敗しました。
Successfully updated a the layerStyle!: レイヤースタイルのアップデートに成功しました!
Failed to remove the layerStyle.: レイヤースタイルの削除に失敗しました。
Successfully removed a the layerStyle!: レイヤースタイルの削除に成功しました!
Failed to delete the layer style.: ''
Successfully deleted the layer style!: ''
Failed to install plugin.: プラグインのインストールに失敗しました。
Successfully installed plugin!: プラグインがインストールされました。
Failed to upgrade plugin.: プラグインのアップグレードに失敗しました。
Expand Down

0 comments on commit bb1ceb9

Please sign in to comment.