From 7f1ded6ea2c1fdcd8b768781cbfbaf342239dfde Mon Sep 17 00:00:00 2001 From: Wroud Date: Tue, 13 Sep 2022 20:52:04 +0300 Subject: [PATCH] CB-2324 refactor: localization aliases --- .../core-localization/src/LocalizationService.ts | 9 ++++++--- webapp/packages/core-localization/src/locales/en.ts | 12 ++++++------ webapp/packages/core-localization/src/locales/it.ts | 12 ++++++------ webapp/packages/core-localization/src/locales/ru.ts | 12 ++++++------ webapp/packages/core-localization/src/locales/zh.ts | 12 ++++++------ webapp/packages/plugin-connections/src/locales/en.ts | 4 ++-- webapp/packages/plugin-connections/src/locales/it.ts | 4 ++-- webapp/packages/plugin-connections/src/locales/ru.ts | 4 ++-- webapp/packages/plugin-connections/src/locales/zh.ts | 4 ++-- .../plugin-navigation-tree/src/locales/en.ts | 8 ++++---- .../plugin-navigation-tree/src/locales/it.ts | 8 ++++---- .../plugin-navigation-tree/src/locales/ru.ts | 8 ++++---- .../plugin-navigation-tree/src/locales/zh.ts | 8 ++++---- .../plugin-resource-manager/src/locales/en.ts | 2 +- .../plugin-resource-manager/src/locales/it.ts | 2 +- .../plugin-resource-manager/src/locales/ru.ts | 2 +- .../plugin-resource-manager/src/locales/zh.ts | 2 +- 17 files changed, 58 insertions(+), 55 deletions(-) diff --git a/webapp/packages/core-localization/src/LocalizationService.ts b/webapp/packages/core-localization/src/LocalizationService.ts index 9641210e5f..d2ee79e334 100644 --- a/webapp/packages/core-localization/src/LocalizationService.ts +++ b/webapp/packages/core-localization/src/LocalizationService.ts @@ -109,10 +109,13 @@ export class LocalizationService extends Bootstrap { } if (typeof translation === 'string') { - return Object.entries(args).reduce( - (translation, [key, value]) => translation.replace(`{args.${key}}`, value), + translation = Object.entries(args).reduce( + (translation, [key, value]) => translation.replace(`{arg:${key}}`, value), translation - ) as T; + ) as string; + + translation = translation.replace(/({alias:(\w*?)})/g, (substr, group1, group2) => this.translate(group2)); + return translation as T; } if (fallback !== undefined) { diff --git a/webapp/packages/core-localization/src/locales/en.ts b/webapp/packages/core-localization/src/locales/en.ts index 06930251b7..5210ef268c 100644 --- a/webapp/packages/core-localization/src/locales/en.ts +++ b/webapp/packages/core-localization/src/locales/en.ts @@ -16,12 +16,12 @@ export const defaultENLocale = [ ['ui_processing_save', 'Save'], ['ui_processing_saved', 'Saved'], ['ui_processing_stop', 'Stop'], - ['ui_second_first_form', '{args.interval} second'], - ['ui_second_second_form', '{args.interval} seconds'], - ['ui_second_third_form', '{args.interval} seconds'], - ['ui_minute_first_form', '{args.interval} minute'], - ['ui_minute_second_form', '{args.interval} minutes'], - ['ui_minute_third_form', '{args.interval} minutes'], + ['ui_second_first_form', '{arg:interval} second'], + ['ui_second_second_form', '{arg:interval} seconds'], + ['ui_second_third_form', '{arg:interval} seconds'], + ['ui_minute_first_form', '{arg:interval} minute'], + ['ui_minute_second_form', '{arg:interval} minutes'], + ['ui_minute_third_form', '{arg:interval} minutes'], ['ui_custom', 'Custom'], ['ui_configure', 'Configure'], ['ui_apply', 'Apply'], diff --git a/webapp/packages/core-localization/src/locales/it.ts b/webapp/packages/core-localization/src/locales/it.ts index b8ff10e82a..b4940df084 100644 --- a/webapp/packages/core-localization/src/locales/it.ts +++ b/webapp/packages/core-localization/src/locales/it.ts @@ -16,12 +16,12 @@ export const defaultITLocale = [ ['ui_processing_save', 'Salva'], ['ui_processing_saved', 'Saved'], ['ui_processing_stop', 'Stop'], - ['ui_second_first_form', '{args.interval} second'], - ['ui_second_second_form', '{args.interval} seconds'], - ['ui_second_third_form', '{args.interval} seconds'], - ['ui_minute_first_form', '{args.interval} minute'], - ['ui_minute_second_form', '{args.interval} minutes'], - ['ui_minute_third_form', '{args.interval} minutes'], + ['ui_second_first_form', '{arg:interval} second'], + ['ui_second_second_form', '{arg:interval} seconds'], + ['ui_second_third_form', '{arg:interval} seconds'], + ['ui_minute_first_form', '{arg:interval} minute'], + ['ui_minute_second_form', '{arg:interval} minutes'], + ['ui_minute_third_form', '{arg:interval} minutes'], ['ui_custom', 'Custom'], ['ui_configure', 'Configure'], ['ui_apply', 'Applica'], diff --git a/webapp/packages/core-localization/src/locales/ru.ts b/webapp/packages/core-localization/src/locales/ru.ts index a5da04a4d5..83da44304f 100644 --- a/webapp/packages/core-localization/src/locales/ru.ts +++ b/webapp/packages/core-localization/src/locales/ru.ts @@ -14,12 +14,12 @@ export const defaultRULocale = [ ['ui_processing_save', 'Сохранить'], ['ui_processing_saved', 'Сохранено'], ['ui_processing_stop', 'Остановить'], - ['ui_second_first_form', '{args.interval} секунда'], - ['ui_second_second_form', '{args.interval} секунды'], - ['ui_second_third_form', '{args.interval} секунд'], - ['ui_minute_first_form', '{args.interval} минута'], - ['ui_minute_second_form', '{args.interval} минуты'], - ['ui_minute_third_form', '{args.interval} минут'], + ['ui_second_first_form', '{arg:interval} секунда'], + ['ui_second_second_form', '{arg:interval} секунды'], + ['ui_second_third_form', '{arg:interval} секунд'], + ['ui_minute_first_form', '{arg:interval} минута'], + ['ui_minute_second_form', '{arg:interval} минуты'], + ['ui_minute_third_form', '{arg:interval} минут'], ['ui_custom', 'Настроить'], ['ui_configure', 'Настроить'], ['ui_apply', 'Применить'], diff --git a/webapp/packages/core-localization/src/locales/zh.ts b/webapp/packages/core-localization/src/locales/zh.ts index a0daf44232..910967a46c 100644 --- a/webapp/packages/core-localization/src/locales/zh.ts +++ b/webapp/packages/core-localization/src/locales/zh.ts @@ -16,12 +16,12 @@ export const defaultZHLocale = [ ['ui_processing_save', '保存'], ['ui_processing_saved', 'Saved'], ['ui_processing_stop', 'Stop'], - ['ui_second_first_form', '{args.interval} second'], - ['ui_second_second_form', '{args.interval} seconds'], - ['ui_second_third_form', '{args.interval} seconds'], - ['ui_minute_first_form', '{args.interval} minute'], - ['ui_minute_second_form', '{args.interval} minutes'], - ['ui_minute_third_form', '{args.interval} minutes'], + ['ui_second_first_form', '{arg:interval} second'], + ['ui_second_second_form', '{arg:interval} seconds'], + ['ui_second_third_form', '{arg:interval} seconds'], + ['ui_minute_first_form', '{arg:interval} minute'], + ['ui_minute_second_form', '{arg:interval} minutes'], + ['ui_minute_third_form', '{arg:interval} minutes'], ['ui_custom', 'Custom'], ['ui_configure', '配置'], ['ui_apply', '应用'], diff --git a/webapp/packages/plugin-connections/src/locales/en.ts b/webapp/packages/plugin-connections/src/locales/en.ts index 8f5395b2dd..acfd598c69 100644 --- a/webapp/packages/plugin-connections/src/locales/en.ts +++ b/webapp/packages/plugin-connections/src/locales/en.ts @@ -6,9 +6,9 @@ export default [ ['connections_public_connection_edit_reconnect_message', 'Connection has been updated. Do you want to reconnect?'], ['connections_public_connection_edit_reconnect_failed', 'Failed to reconnect'], ['connections_public_connection_folder_move_failed', 'Failed to move to folder'], - ['connections_public_connection_folder_move_duplication', 'Target folder or selected folders contains folder with the same name ({args.name})'], + ['connections_public_connection_folder_move_duplication', 'Target folder or selected folders contains folder with the same name ({arg:name})'], ['plugin_connections_connection_form_project_invalid', 'You have no access to create connections in selected project'], ['plugin_connections_connection_form_host_configuration_invalid', 'Host configuration is not supported'], ['plugin_connections_connection_form_name_invalid', 'Field \'name\' can\'t be empty'], - ['connections_public_connection_folder_delete_confirmation', 'You\'re going to delete "{args.name}". Connections won\'t be deleted. Are you sure?'], + ['connections_public_connection_folder_delete_confirmation', 'You\'re going to delete "{arg:name}". Connections won\'t be deleted. Are you sure?'], ]; diff --git a/webapp/packages/plugin-connections/src/locales/it.ts b/webapp/packages/plugin-connections/src/locales/it.ts index 677ddf1984..3272924879 100644 --- a/webapp/packages/plugin-connections/src/locales/it.ts +++ b/webapp/packages/plugin-connections/src/locales/it.ts @@ -6,9 +6,9 @@ export default [ ['connections_public_connection_edit_reconnect_message', 'Connection has been updated. Do you want to reconnect?'], ['connections_public_connection_edit_reconnect_failed', 'Failed to reconnect'], ['connections_public_connection_folder_move_failed', 'Failed to move to folder'], - ['connections_public_connection_folder_move_duplication', 'Target folder or selected folders contains folder with the same name ({args.name})'], + ['connections_public_connection_folder_move_duplication', 'Target folder or selected folders contains folder with the same name ({arg:name})'], ['plugin_connections_connection_form_project_invalid', 'You have no access to create connections in selected project'], ['plugin_connections_connection_form_host_configuration_invalid', 'Host configuration is not supported'], ['plugin_connections_connection_form_name_invalid', 'Field \'name\' can\'t be empty'], - ['connections_public_connection_folder_delete_confirmation', 'You\'re going to delete "{args.name}". Connections won\'t be deleted. Are you sure?'], + ['connections_public_connection_folder_delete_confirmation', 'You\'re going to delete "{arg:name}". Connections won\'t be deleted. Are you sure?'], ]; diff --git a/webapp/packages/plugin-connections/src/locales/ru.ts b/webapp/packages/plugin-connections/src/locales/ru.ts index cee3925c3d..350e719817 100644 --- a/webapp/packages/plugin-connections/src/locales/ru.ts +++ b/webapp/packages/plugin-connections/src/locales/ru.ts @@ -6,9 +6,9 @@ export default [ ['connections_public_connection_edit_reconnect_message', 'Подключение было обновлено. Вы хотите переподключиться?'], ['connections_public_connection_edit_reconnect_failed', 'Не удалось переподключиться'], ['connections_public_connection_folder_move_failed', 'Ошибка перемещения в папку'], - ['connections_public_connection_folder_move_duplication', 'Выбранные папки или папка назначения содержит папки с таким же названием ({args.name})'], + ['connections_public_connection_folder_move_duplication', 'Выбранные папки или папка назначения содержит папки с таким же названием ({arg:name})'], ['plugin_connections_connection_form_project_invalid', 'У вас нет разрешения создавать коннекшены в выбранном проекте'], ['plugin_connections_connection_form_host_configuration_invalid', 'Конфигурация хоста не поддерживается'], ['plugin_connections_connection_form_name_invalid', 'Поле \'Название\' не может быть пустым'], - ['connections_public_connection_folder_delete_confirmation', 'Вы удаляете "{args.name}". Подключения не будут удалены. Вы уверены?'], + ['connections_public_connection_folder_delete_confirmation', 'Вы удаляете "{arg:name}". Подключения не будут удалены. Вы уверены?'], ]; diff --git a/webapp/packages/plugin-connections/src/locales/zh.ts b/webapp/packages/plugin-connections/src/locales/zh.ts index 51abab77bc..6c88549b7a 100644 --- a/webapp/packages/plugin-connections/src/locales/zh.ts +++ b/webapp/packages/plugin-connections/src/locales/zh.ts @@ -6,9 +6,9 @@ export default [ ['connections_public_connection_edit_reconnect_message', '连接已更新。您想重新连接吗?'], ['connections_public_connection_edit_reconnect_failed', '重新连接失败'], ['connections_public_connection_folder_move_failed', 'Failed to move to folder'], - ['connections_public_connection_folder_move_duplication', 'Target folder or selected folders contains folder with the same name ({args.name})'], + ['connections_public_connection_folder_move_duplication', 'Target folder or selected folders contains folder with the same name ({arg:name})'], ['plugin_connections_connection_form_project_invalid', 'You have no access to create connections in selected project'], ['plugin_connections_connection_form_host_configuration_invalid', 'Host configuration is not supported'], ['plugin_connections_connection_form_name_invalid', 'Field \'name\' can\'t be empty'], - ['connections_public_connection_folder_delete_confirmation', 'You\'re going to delete "{args.name}". Connections won\'t be deleted. Are you sure?'], + ['connections_public_connection_folder_delete_confirmation', 'You\'re going to delete "{arg:name}". Connections won\'t be deleted. Are you sure?'], ]; diff --git a/webapp/packages/plugin-navigation-tree/src/locales/en.ts b/webapp/packages/plugin-navigation-tree/src/locales/en.ts index c79370bf38..f002f5f86f 100644 --- a/webapp/packages/plugin-navigation-tree/src/locales/en.ts +++ b/webapp/packages/plugin-navigation-tree/src/locales/en.ts @@ -1,7 +1,7 @@ export default [ ['app_navigationTree_openNodeTab', 'Open'], ['app_navigationTree_search', 'Search elements...'], - ['app_navigationTree_limited', 'Elements are limited to {args.limit} items'], + ['app_navigationTree_limited', 'Elements are limited to {arg:limit} items'], ['app_navigationTree_action_link_with_editor', 'Link with editor'], ['app_navigationTree_action_collapse_all', 'Collapse all'], ['app_navigationTree_settings_filter_title', 'Filter'], @@ -12,11 +12,11 @@ export default [ ['app_navigationTree_settings_state_description', 'Reopen expanded nodes after page refresh'], ['app_navigationTree_settings_folders_title', 'Folders'], ['app_navigationTree_settings_folders_description', 'Open any node as tree root node'], - ['app_navigationTree_node_delete_confirmation', 'You\'re going to delete "{args.name}". Are you sure?'], - ['app_navigationTree_node_delete_error', 'Failed to delete "{args.name}'], + ['app_navigationTree_node_delete_confirmation', 'You\'re going to delete "{arg:name}". Are you sure?'], + ['app_navigationTree_node_delete_error', 'Failed to delete "{arg:name}'], ['app_navigationTree_node_rename_error', 'Error occurred while renaming'], ['app_navigationTree_node_empty', 'Empty'], - ['app_navigationTree_node_no_results', "We're sorry. There no matching results for '{args.filter}'"], + ['app_navigationTree_node_no_results', "We're sorry. There no matching results for '{arg:filter}'"], ['app_navigationTree_node_not_found', 'Node not found'], ['app_navigationTree_connection_view', 'Connection view'], ['app_navigationTree_connection_view_option_simple', 'Simple'], diff --git a/webapp/packages/plugin-navigation-tree/src/locales/it.ts b/webapp/packages/plugin-navigation-tree/src/locales/it.ts index ba3869b56c..cee9ac4190 100644 --- a/webapp/packages/plugin-navigation-tree/src/locales/it.ts +++ b/webapp/packages/plugin-navigation-tree/src/locales/it.ts @@ -1,22 +1,22 @@ export default [ ['app_navigationTree_openNodeTab', 'Apri'], ['app_navigationTree_search', 'Search elements...'], - ['app_navigationTree_limited', 'Elements are limited to {args.limit} items'], + ['app_navigationTree_limited', 'Elements are limited to {arg:limit} items'], ['app_navigationTree_action_link_with_editor', 'Link with editor'], ['app_navigationTree_action_collapse_all', 'Collapse all'], ['app_navigationTree_settings_filter_title', 'Filter'], ['app_navigationTree_settings_filter_description', 'Show filtering field'], ['app_navigationTree_settings_filter_all_title', 'Show collapsed'], ['app_navigationTree_settings_filter_all_description', 'Shows filtered elements in collapsed folders'], - ['app_navigationTree_node_delete_confirmation', 'You\'re going to delete "{args.name}". Are you sure?'], - ['app_navigationTree_node_delete_error', 'Failed to delete "{args.name}'], + ['app_navigationTree_node_delete_confirmation', 'You\'re going to delete "{arg:name}". Are you sure?'], + ['app_navigationTree_node_delete_error', 'Failed to delete "{arg:name}'], ['app_navigationTree_node_rename_error', 'Error occurred while renaming'], ['app_navigationTree_settings_state_title', 'Save tree state'], ['app_navigationTree_settings_state_description', 'Reopen expanded nodes after page refresh'], ['app_navigationTree_settings_folders_title', 'Folders'], ['app_navigationTree_settings_folders_description', 'Open any node as tree root node'], ['app_navigationTree_node_empty', 'Empty'], - ['app_navigationTree_node_no_results', "We're sorry. There no matching results for '{args.filter}'"], + ['app_navigationTree_node_no_results', "We're sorry. There no matching results for '{arg:filter}'"], ['app_navigationTree_node_not_found', 'Node not found'], ['app_navigationTree_connection_view', 'Vista di connessione'], ['app_navigationTree_connection_view_option_simple', 'Semplice'], diff --git a/webapp/packages/plugin-navigation-tree/src/locales/ru.ts b/webapp/packages/plugin-navigation-tree/src/locales/ru.ts index d53283394a..ebf41dc227 100644 --- a/webapp/packages/plugin-navigation-tree/src/locales/ru.ts +++ b/webapp/packages/plugin-navigation-tree/src/locales/ru.ts @@ -1,7 +1,7 @@ export default [ ['app_navigationTree_openNodeTab', 'Открыть'], ['app_navigationTree_search', 'Искать элементы...'], - ['app_navigationTree_limited', 'Отображено {args.limit} элементов'], + ['app_navigationTree_limited', 'Отображено {arg:limit} элементов'], ['app_navigationTree_action_link_with_editor', 'Синхронизовать с редактором'], ['app_navigationTree_action_collapse_all', 'Свернуть все элементы'], @@ -14,12 +14,12 @@ export default [ ['app_navigationTree_settings_state_description', 'Восстанавливает открытые узлы после обновления страницы'], ['app_navigationTree_settings_folders_title', 'Папки'], ['app_navigationTree_settings_folders_description', 'Позволяет открыть любой узел как начальный'], - ['app_navigationTree_node_delete_confirmation', 'Вы собираетесь удалить "{args.name}". Вы уверены?'], - ['app_navigationTree_node_delete_error', 'Ошибка удаления "{args.name}'], + ['app_navigationTree_node_delete_confirmation', 'Вы собираетесь удалить "{arg:name}". Вы уверены?'], + ['app_navigationTree_node_delete_error', 'Ошибка удаления "{arg:name}'], ['app_navigationTree_node_rename_error', 'Ошибка переименования ноды'], ['app_navigationTree_node_empty', 'Пусто'], - ['app_navigationTree_node_no_results', "Извините, не удалось найти элементы содержащие '{args.filter}'"], + ['app_navigationTree_node_no_results', "Извините, не удалось найти элементы содержащие '{arg:filter}'"], ['app_navigationTree_node_not_found', 'Элемент не найден'], ['app_navigationTree_connection_view', 'Отображение'], ['app_navigationTree_connection_view_option_simple', 'Упрощенное'], diff --git a/webapp/packages/plugin-navigation-tree/src/locales/zh.ts b/webapp/packages/plugin-navigation-tree/src/locales/zh.ts index 2152ea0e2d..a655a5a825 100644 --- a/webapp/packages/plugin-navigation-tree/src/locales/zh.ts +++ b/webapp/packages/plugin-navigation-tree/src/locales/zh.ts @@ -1,6 +1,6 @@ export default [ ['app_navigationTree_search', 'Search elements...'], - ['app_navigationTree_limited', 'Elements are limited to {args.limit} items'], + ['app_navigationTree_limited', 'Elements are limited to {arg:limit} items'], ['app_navigationTree_action_link_with_editor', 'Link with editor'], ['app_navigationTree_action_collapse_all', 'Collapse all'], ['app_navigationTree_settings_filter_title', 'Filter'], @@ -11,11 +11,11 @@ export default [ ['app_navigationTree_settings_state_description', 'Reopen expanded nodes after page refresh'], ['app_navigationTree_settings_folders_title', 'Folders'], ['app_navigationTree_settings_folders_description', 'Open any node as tree root node'], - ['app_navigationTree_node_delete_confirmation', 'You\'re going to delete "{args.name}". Are you sure?'], - ['app_navigationTree_node_delete_error', 'Failed to delete "{args.name}'], + ['app_navigationTree_node_delete_confirmation', 'You\'re going to delete "{arg:name}". Are you sure?'], + ['app_navigationTree_node_delete_error', 'Failed to delete "{arg:name}'], ['app_navigationTree_node_rename_error', 'Error occurred while renaming'], ['app_navigationTree_node_empty', 'Empty'], - ['app_navigationTree_node_no_results', "We're sorry. There no matching results for '{args.filter}'"], + ['app_navigationTree_node_no_results', "We're sorry. There no matching results for '{arg:filter}'"], ['app_navigationTree_openNodeTab', '打开'], ['app_navigationTree_connection_view', '连接视图'], ['app_navigationTree_node_not_found', 'Node not found'], diff --git a/webapp/packages/plugin-resource-manager/src/locales/en.ts b/webapp/packages/plugin-resource-manager/src/locales/en.ts index 1b925a1c3c..cbe8c7d433 100644 --- a/webapp/packages/plugin-resource-manager/src/locales/en.ts +++ b/webapp/packages/plugin-resource-manager/src/locales/en.ts @@ -15,7 +15,7 @@ export default [ ['plugin_resource_manager_sync_script_error', "Failed to sync editor's query"], ['plugin_resource_manager_delete_script_error', 'Error occurred while trying to delete the script'], ['plugin_resource_manager_script_not_found_title', 'Failed to find the associated script'], - ['plugin_resource_manager_script_delete_confirmation', 'You are going to delete "{args.name}". Are you sure?'], + ['plugin_resource_manager_script_delete_confirmation', 'You are going to delete "{arg:name}". Are you sure?'], ['plugin_resource_manager_script_not_found_message', 'The script was probably removed or renamed. The last known value will be used'], ['plugin_resource_manager_script_name_invalid_characters_message', 'Script\'s name may contain the following symbols "_-$.()@" and can\'t start with a dot'], ]; \ No newline at end of file diff --git a/webapp/packages/plugin-resource-manager/src/locales/it.ts b/webapp/packages/plugin-resource-manager/src/locales/it.ts index c5b3410081..f1c2699a0c 100644 --- a/webapp/packages/plugin-resource-manager/src/locales/it.ts +++ b/webapp/packages/plugin-resource-manager/src/locales/it.ts @@ -15,7 +15,7 @@ export default [ ['plugin_resource_manager_sync_script_error', "Failed to sync editor's query"], ['plugin_resource_manager_delete_script_error', 'Error occurred while trying to delete the script'], ['plugin_resource_manager_script_not_found_title', 'Failed to find the associated script'], - ['plugin_resource_manager_script_delete_confirmation', 'You are going to delete "{args.name}". Are you sure?'], + ['plugin_resource_manager_script_delete_confirmation', 'You are going to delete "{arg:name}". Are you sure?'], ['plugin_resource_manager_script_not_found_message', 'The script was probably removed or renamed. The last known value will be used'], ['plugin_resource_manager_script_name_invalid_characters_message', 'Script\'s name may contain the following symbols "_-$.()@" and can\'t start with a dot'], ]; \ No newline at end of file diff --git a/webapp/packages/plugin-resource-manager/src/locales/ru.ts b/webapp/packages/plugin-resource-manager/src/locales/ru.ts index 75037cc317..7b0adb74f6 100644 --- a/webapp/packages/plugin-resource-manager/src/locales/ru.ts +++ b/webapp/packages/plugin-resource-manager/src/locales/ru.ts @@ -15,7 +15,7 @@ export default [ ['plugin_resource_manager_sync_script_error', 'Не удалось синхронизировать данные редактора'], ['plugin_resource_manager_delete_script_error', 'Возникла ошибка при удалении скрипта'], ['plugin_resource_manager_script_not_found_title', 'Не удалось найти привязанный скрипт'], - ['plugin_resource_manager_script_delete_confirmation', 'Вы удаляете "{args.name}". Удалить?'], + ['plugin_resource_manager_script_delete_confirmation', 'Вы удаляете "{arg:name}". Удалить?'], ['plugin_resource_manager_script_not_found_message', 'Возможно скрипт был удален или переименован. Будет использовано последнее известное значение'], ['plugin_resource_manager_script_name_invalid_characters_message', 'Имя скрипта может содержать следующие символы "_-$.()@" и не может начинаться с точки'], ]; \ No newline at end of file diff --git a/webapp/packages/plugin-resource-manager/src/locales/zh.ts b/webapp/packages/plugin-resource-manager/src/locales/zh.ts index ab21a4a666..06524054b8 100644 --- a/webapp/packages/plugin-resource-manager/src/locales/zh.ts +++ b/webapp/packages/plugin-resource-manager/src/locales/zh.ts @@ -15,7 +15,7 @@ export default [ ['plugin_resource_manager_sync_script_error', '同步查询失败'], ['plugin_resource_manager_delete_script_error', '删除脚本时发生错误'], ['plugin_resource_manager_script_not_found_title', '找不到关联的脚本'], - ['plugin_resource_manager_script_delete_confirmation', '你确定要删除"{args.name}"吗?'], + ['plugin_resource_manager_script_delete_confirmation', '你确定要删除"{arg:name}"吗?'], ['plugin_resource_manager_script_not_found_message', '脚本可能被删除或重命名,将使用最后的有效值'], ['plugin_resource_manager_script_name_invalid_characters_message', '脚本名称中可以使用字符"_-$.()@" 但不能以"."开头'], ];