Translate UI and user-facing messages to Ukrainian (#5)
- All frontend pages, labels, notices and errors; html lang=uk, uk-UA money format - Brand "Assistant System" in the top bar and page title - Backend error details returned to the UI (auth, orders, receipts, cash registers, Checkbox/CRM/NP errors) and CLI output - Tests updated for the new messages Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -27,10 +27,10 @@ async function readErrorMessage(response: Response): Promise<string> {
|
||||
// Тело не JSON или пустое — используем сообщение по статусу ниже.
|
||||
}
|
||||
|
||||
if (response.status === 401) return 'Требуется вход в систему'
|
||||
if (response.status === 403) return 'Недостаточно прав для этого действия'
|
||||
if (response.status >= 500) return 'Сервер временно недоступен, попробуйте позже'
|
||||
return `Ошибка запроса (${response.status})`
|
||||
if (response.status === 401) return 'Потрібно увійти в систему'
|
||||
if (response.status === 403) return 'Недостатньо прав для цієї дії'
|
||||
if (response.status >= 500) return 'Сервер тимчасово недоступний, спробуйте пізніше'
|
||||
return `Помилка запиту (${response.status})`
|
||||
}
|
||||
|
||||
// Параллельные 401 не должны порождать несколько запросов на refresh —
|
||||
@@ -42,7 +42,7 @@ async function refreshAccessToken(): Promise<string> {
|
||||
|
||||
const refreshToken = getRefreshToken()
|
||||
if (!refreshToken) {
|
||||
throw new ApiError(401, 'Сессия истекла, войдите снова')
|
||||
throw new ApiError(401, 'Сесія закінчилася, увійдіть знову')
|
||||
}
|
||||
|
||||
refreshPromise = (async () => {
|
||||
|
||||
Reference in New Issue
Block a user