Skip to content

Commit

Permalink
💄 style: Update i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Jan 15, 2024
1 parent 61b9094 commit 448c393
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions locales/de-DE/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"close": "Schließen",
"confirmRemoveSessionItemAlert": "Möchten Sie diesen Assistenten wirklich löschen? Nach dem Löschen kann er nicht wiederhergestellt werden. Bitte bestätigen Sie Ihre Aktion.",
"copy": "Kopieren",
"copyFail": "Kopieren fehlgeschlagen",
"copySuccess": "Kopieren erfolgreich",
"defaultAgent": "Standardassistent",
"defaultList": "Standardliste",
Expand Down
1 change: 1 addition & 0 deletions locales/en-US/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"close": "Close",
"confirmRemoveSessionItemAlert": "You are about to delete this agent. Once deleted, it cannot be recovered. Please confirm your action.",
"copy": "Copy",
"copyFail": "Copy failed",
"copySuccess": "Copied successfully",
"defaultAgent": "Default Agent",
"defaultList": "Default List",
Expand Down
1 change: 1 addition & 0 deletions locales/es-ES/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"close": "Cerrar",
"confirmRemoveSessionItemAlert": "Estás a punto de eliminar este asistente. Una vez eliminado, no se podrá recuperar. Por favor, confirma tu acción",
"copy": "Copiar",
"copyFail": "Fallo al copiar",
"copySuccess": "¡Copia exitosa!",
"defaultAgent": "Asistente predeterminado",
"defaultList": "Lista predeterminada",
Expand Down
1 change: 1 addition & 0 deletions locales/fr-FR/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"close": "Fermer",
"confirmRemoveSessionItemAlert": "Vous êtes sur le point de supprimer cet agent. Une fois supprimé, il ne pourra pas être récupéré. Veuillez confirmer votre action.",
"copy": "Copier",
"copyFail": "Échec de la copie",
"copySuccess": "Copie réussie",
"defaultAgent": "Agent par défaut",
"defaultList": "Liste par défaut",
Expand Down
1 change: 1 addition & 0 deletions locales/it-IT/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"close": "Chiudi",
"confirmRemoveSessionItemAlert": "Stai per eliminare questo assistente. Una volta eliminato, non sarà possibile recuperarlo. Confermi l'operazione?",
"copy": "Copia",
"copyFail": "Copia non riuscita",
"copySuccess": "Copia riuscita",
"defaultAgent": "Assistente predefinito",
"defaultList": "Lista predefinita",
Expand Down
1 change: 1 addition & 0 deletions locales/ja-JP/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"close": "閉じる",
"confirmRemoveSessionItemAlert": "このエージェントを削除します。削除後は元に戻すことはできません。操作を確認してください。",
"copy": "コピー",
"copyFail": "コピーに失敗しました",
"copySuccess": "コピーが成功しました",
"defaultAgent": "デフォルトエージェント",
"defaultList": "デフォルトリスト",
Expand Down
1 change: 1 addition & 0 deletions locales/ko-KR/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"close": "닫기",
"confirmRemoveSessionItemAlert": "이 에이전트를 삭제하려고 합니다. 삭제 후에는 복구할 수 없습니다. 작업을 확인하십시오.",
"copy": "복사",
"copyFail": "복사 실패",
"copySuccess": "복사 성공",
"defaultAgent": "기본 에이전트",
"defaultList": "기본 목록",
Expand Down
1 change: 1 addition & 0 deletions locales/nl-NL/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"close": "Sluiten",
"confirmRemoveSessionItemAlert": "U staat op het punt deze assistent te verwijderen. Na verwijdering kan deze niet worden hersteld. Weet u zeker dat u door wilt gaan?",
"copy": "Kopiëren",
"copyFail": "Kopiëren mislukt",
"copySuccess": "Kopiëren gelukt",
"defaultAgent": "Standaard assistent",
"defaultList": "Standaardlijst",
Expand Down
1 change: 1 addition & 0 deletions locales/pl-PL/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"close": "Zamknij",
"confirmRemoveSessionItemAlert": "Czy na pewno chcesz usunąć tego asystenta? Po usunięciu nie będzie możliwe jego odzyskanie.",
"copy": "Kopiuj",
"copyFail": "Nie udało się skopiować",
"copySuccess": "Skopiowano pomyślnie",
"defaultAgent": "Domyślny asystent",
"defaultList": "Domyślna lista",
Expand Down
1 change: 1 addition & 0 deletions locales/pt-BR/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"close": "Fechar",
"confirmRemoveSessionItemAlert": "Você está prestes a excluir este assistente. Após a exclusão, não será possível recuperá-lo. Por favor, confirme sua ação.",
"copy": "Copiar",
"copyFail": "Falha ao copiar",
"copySuccess": "Cópia bem-sucedida",
"defaultAgent": "Assistente padrão",
"defaultList": "Lista padrão",
Expand Down
1 change: 1 addition & 0 deletions locales/ru-RU/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"close": "Закрыть",
"confirmRemoveSessionItemAlert": "Вы собираетесь удалить этого агента. После удаления его будет невозможно восстановить. Подтвердите ваше действие",
"copy": "Копировать",
"copyFail": "Не удалось скопировать",
"copySuccess": "Успешно скопировано",
"defaultAgent": "Пользовательский агент",
"defaultList": "Список по умолчанию",
Expand Down
1 change: 1 addition & 0 deletions locales/tr-TR/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"close": "Kapat",
"confirmRemoveSessionItemAlert": "Bu asistanı silmek üzeresiniz. Silindikten sonra geri alınamaz. Lütfen eyleminizi onaylayın.",
"copy": "Kopyala",
"copyFail": "Kopyalama başarısız oldu",
"copySuccess": "Kopyalama Başarılı",
"defaultAgent": "Varsayılan Asistan",
"defaultList": "Varsayılan Liste",
Expand Down
1 change: 1 addition & 0 deletions locales/vi-VN/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"close": "Đóng",
"confirmRemoveSessionItemAlert": "Bạn sắp xóa trợ lý này. Sau khi xóa, bạn sẽ không thể khôi phục. Vui lòng xác nhận hành động của bạn",
"copy": "Sao chép",
"copyFail": "Sao chép thất bại",
"copySuccess": "Sao chép thành công",
"defaultAgent": "Trợ lý mặc định",
"defaultList": "Danh sách mặc định",
Expand Down
1 change: 1 addition & 0 deletions locales/zh-CN/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"close": "关闭",
"confirmRemoveSessionItemAlert": "即将删除该助手,删除后该将无法找回,请确认你的操作",
"copy": "复制",
"copyFail": "复制失败",
"copySuccess": "复制成功",
"defaultAgent": "自定义助手",
"defaultList": "默认列表",
Expand Down
1 change: 1 addition & 0 deletions locales/zh-TW/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"close": "關閉",
"confirmRemoveSessionItemAlert": "即將刪除此助手,刪除後將無法復原,請確認您的操作",
"copy": "複製",
"copyFail": "複製失敗",
"copySuccess": "複製成功",
"defaultAgent": "預設助手",
"defaultList": "預設清單",
Expand Down
1 change: 1 addition & 0 deletions src/locales/default/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default {
close: '关闭',
confirmRemoveSessionItemAlert: '即将删除该助手,删除后该将无法找回,请确认你的操作',
copy: '复制',
copyFail: '复制失败',
copySuccess: '复制成功',
defaultAgent: '自定义助手',
defaultList: '默认列表',
Expand Down
2 changes: 1 addition & 1 deletion src/store/session/slices/session/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const createSessionSlice: StateCreator<

// duplicate Session Error
if (!newId) {
message.error('复制失败');
message.error(t('copyFail', { ns: 'common' }));

Check warning on line 125 in src/store/session/slices/session/action.ts

View check run for this annotation

Codecov / codecov/patch

src/store/session/slices/session/action.ts#L125

Added line #L125 was not covered by tests
return;
}

Expand Down

0 comments on commit 448c393

Please sign in to comment.