Repository navigation
NodeFlow 2.3.0 - #24
Merged
Merged
Conversation
The per-node result kept only Russian text, so the UI could not localize it. Add error_code (route_copy_failed, node_not_found, advanced_config_active, *_requires_agent_*); the error text stays for older clients.
- Typed dictionaries src/locales/ru.ts (source of keys) and en.ts, t()/useT with interpolation and Intl.PluralRules plurals, no new dependency. - Language from localStorage nodeflow.lang, then navigator.languages, ru fallback; switcher in the sidebar and on the sign-in card. - Intl dates/numbers and byte/bitrate units follow the UI language. - API errors: known error.code values are localized, unknown codes keep the server message; route copy results use error_code. - Translated: app shell, sign-in, nodes overview, node detail, routes table, route editor with validation messages, copy and template dialogs. - tests/i18n.test.ts: identical keys, matching placeholders, plurals, language detection, error-code mapping.
LintIssue gains message_key and params (Russian message kept); the 'Собрано' revision note gets metadata note_key; route copy accepts an optional copy_suffix so the UI can localize ' (копия)'.
Add node wizard, settings, HAProxy config page and linters, traffic, HAProxy directive docs (haproxyDocs.en.ts), 65 API error codes, demo fixtures, mobile route table labels. 1428 keys in each dictionary.
Co-authored-by: ANHELL <275190042+ANHELL404@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NodeFlow 2.3.0
Panel 2.3.0 · Node Agent 2.3.0 · HAProxy renderer v21
Английский интерфейс с переключателем языка, README на английском и стабильные коды ошибок в API. Миграций нет. Спасибо @ANHELL404 (#21, #23).
Новое
error_codeиmessage_keyсmessage_params; заметка о сборке из маршрутов —note_key(built_from_routes). Полеmessageна русском сохранено для совместимости.copy_suffix— параметр копирования маршрута, задающий суффикс имени копии.Исправления
/usr/local/bin(fix(bootstrap): create /usr/local/bin before installing the node agent #21, bootstrap: create /usr/local/bin before installing the node agent #23). Спасибо @ANHELL404.Обновление