Skip to content

Commit d479580

Browse files
committed
feat(langs): register fa and sv locales, complete Swedish plugin translations
fa.js and sv.js have existed in src/langs for years but were never imported in src/languages.ts, so language: 'fa'/'sv' silently fell back to English. Register both (alongside the new sk from #1412), add the missing Spellcheck/Speech Recognize keys to sv.js and list fa/mn in the langs README.
1 parent cef076c commit d479580

4 files changed

Lines changed: 25 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@
99
> - :house: [Internal]
1010
> - :nail_care: [Polish]
1111

12+
## 4.13.11
13+
14+
#### :rocket: New Feature
15+
16+
- **Languages**: Slovak (`sk`) localization — thanks [@KamikX](https://github.com/KamikX) ([#1412](https://github.com/xdan/jodit/pull/1412)). Also wired up the Persian (`fa`) and Swedish (`sv`) locales: both files have existed in `src/langs/` for years but were never registered in `src/languages.ts`, so `language: 'fa'` / `language: 'sv'` silently fell back to English. Swedish additionally got the missing `Spellcheck`/`Speech Recognize` plugin translations.
17+
18+
#### :bug: Bug Fix
19+
20+
- **File browser / i18n**: the "create directory" prompt reused the same `type name` translation key as file rename, so both prompts always showed the same text; it now uses its own `type dir name` key (translated in every locale). The French `type name` translation was also wrong — it read "type de fichier" ("file type") instead of a "enter the name" prompt. Thanks [@AntoineRoue](https://github.com/AntoineRoue) ([#1405](https://github.com/xdan/jodit/pull/1405)).
21+
22+
#### :house: Internal
23+
24+
- **Dependencies**: dev/build-only Dependabot bumps — `postcss` 8.5.25, `shell-quote`+`concurrently` (security), `http-proxy-middleware` 2.0.10 (security), `eslint-plugin-mocha` 11.3.0, `cssnano-preset-advanced` 8.0.2, `eslint-plugin-prettier` 5.5.6, `autoprefixer` 10.5.4, `@eslint/compat` 2.1.0, `@eslint/eslintrc` 3.3.6, `tsx` 4.23.1 (#1413, #1410, #1409, #1404, #1401, #1399, #1398, #1397, #1396, #1395); GitHub Actions bumps `setup-node` 7, `first-interaction` 3, `upload-pages-artifact` 5, `deploy-pages` 5, `sticky-pull-request-comment` 3 (#1390–#1394).
25+
1226
## 4.13.10
1327

1428
#### :house: Internal

src/langs/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ cs_cz,
2222
de,
2323
en,
2424
es,
25+
fa,
2526
fi,
2627
fr,
2728
he,
@@ -30,6 +31,7 @@ id,
3031
it,
3132
ja,
3233
ko,
34+
mn,
3335
nl,
3436
no,
3537
pl,

src/langs/sv.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,11 @@ module.exports = {
226226
Edit: 'Redigera',
227227
Sound: 'Ljud',
228228
'Interim Results': 'Preliminära resultat',
229+
Spellcheck: 'Stavningskontroll',
230+
'Speech Recognize': 'Taligenkänning',
231+
newline: 'ny rad',
232+
delete: 'radera',
233+
space: 'mellanslag',
229234
'Embed code': 'Bädda in kod',
230235
All: 'Välj alla',
231236
'License: %s': 'Licens: %s'

src/languages.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import cs_cz from 'jodit/langs/cs_cz';
2020
import de from 'jodit/langs/de';
2121
import en from 'jodit/langs/en';
2222
import es from 'jodit/langs/es';
23+
import fa from 'jodit/langs/fa';
2324
import fi from 'jodit/langs/fi';
2425
import fr from 'jodit/langs/fr';
2526
import he from 'jodit/langs/he';
@@ -36,6 +37,7 @@ import pl from 'jodit/langs/pl';
3637
import pt_br from 'jodit/langs/pt_br';
3738
import ru from 'jodit/langs/ru';
3839
import sk from 'jodit/langs/sk';
40+
import sv from 'jodit/langs/sv';
3941
import tr from 'jodit/langs/tr';
4042
import ua from 'jodit/langs/ua';
4143
import zh_cn from 'jodit/langs/zh_cn';
@@ -49,6 +51,7 @@ exp = {
4951
de,
5052
en,
5153
es,
54+
fa,
5255
fi,
5356
fr,
5457
he,
@@ -64,6 +67,7 @@ exp = {
6467
pt_br,
6568
ru,
6669
sk,
70+
sv,
6771
tr,
6872
ua,
6973
zh_cn,

0 commit comments

Comments
 (0)