mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-08-11 00:30:12 -04:00
Merge pull request #2608 from pterodaktil02/feature/russian-localization
Add Russian localization
This commit is contained in:
commit
be97f2f5be
5 changed files with 6493 additions and 3 deletions
|
|
@ -382,6 +382,18 @@ const TR_COGNATES = [
|
|||
'{{filament}} @ {{temp}}°C', // drying badge: filament code + universal °C
|
||||
];
|
||||
|
||||
const RU_COGNATES = [
|
||||
'MakerWorld: {{designer}}',
|
||||
'email',
|
||||
'{{printer}}: {{error}}',
|
||||
'Bambu Cloud',
|
||||
'Orca Cloud',
|
||||
'{{name}} — {{stage}} ({{percent}}%) — {{elapsed}}',
|
||||
'EC984C,#6CD4BC,A66EB9,D87694',
|
||||
'({{count}}/8)',
|
||||
'(25%, 50%, 75%)',
|
||||
];
|
||||
|
||||
const IDENTICAL_TO_EN_ALLOWED = {
|
||||
de: new Set(DE_COGNATES),
|
||||
fr: new Set(FR_COGNATES),
|
||||
|
|
@ -393,6 +405,7 @@ const IDENTICAL_TO_EN_ALLOWED = {
|
|||
'zh-CN': new Set(ZH_CN_COGNATES),
|
||||
'zh-TW': new Set(ZH_TW_COGNATES),
|
||||
tr: new Set(TR_COGNATES),
|
||||
ru: new Set(RU_COGNATES),
|
||||
};
|
||||
|
||||
// Pure comparison logic, exported so tests can verify each failure mode
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ import ptBR from './locales/pt-BR';
|
|||
import zhCN from './locales/zh-CN';
|
||||
import zhTW from './locales/zh-TW';
|
||||
import tr from './locales/tr';
|
||||
import ru from './locales/ru';
|
||||
|
||||
const resources = {
|
||||
en: { translation: en },
|
||||
|
|
@ -27,9 +28,10 @@ const resources = {
|
|||
'zh-CN': { translation: zhCN },
|
||||
'zh-TW': { translation: zhTW },
|
||||
tr: { translation: tr },
|
||||
ru: { translation: ru },
|
||||
};
|
||||
|
||||
const SUPPORTED_LNGS = ['en', 'de', 'es', 'fr', 'ja', 'it', 'ko', 'pt-BR', 'tr', 'zh-CN', 'zh-TW'];
|
||||
const SUPPORTED_LNGS = ['en', 'de', 'es', 'fr', 'ja', 'it', 'ko', 'pt-BR', 'ru', 'tr', 'zh-CN', 'zh-TW'];
|
||||
const APPLIANCE_CONSUMED_KEY = 'bambuddy_appliance_locale_consumed';
|
||||
|
||||
i18n
|
||||
|
|
@ -107,4 +109,5 @@ export const availableLanguages = [
|
|||
{ code: 'zh-CN', name: 'Chinese (Simplified)', nativeName: '简体中文' },
|
||||
{ code: 'zh-TW', name: 'Chinese (Traditional)', nativeName: '繁體中文' },
|
||||
{ code: 'tr', name: 'Turkish', nativeName: 'Türkçe' },
|
||||
{ code: 'ru', name: 'Russian', nativeName: 'Русский' },
|
||||
];
|
||||
|
|
|
|||
6471
frontend/src/i18n/locales/ru.ts
Normal file
6471
frontend/src/i18n/locales/ru.ts
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
<!-- Splash screens for iOS -->
|
||||
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
|
||||
<script type="module" crossorigin src="/assets/index-Cqi3-E-p.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-DrPqYCte.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CKAbipPc.css">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue