-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement adding missing translations * Add math plugin translations
- Loading branch information
1 parent
0037055
commit 6382b65
Showing
8 changed files
with
67 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,15 +33,20 @@ <h2>Formula rendering from markup</h2> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js"></script> | ||
<script src="../build/ckeditor.js"></script> | ||
<script src="../build/translations/en.js"></script> | ||
<script src="../build/translations/es.js"></script> | ||
<script src="../build/translations/uk.js"></script> | ||
<script> | ||
console.log( | ||
CustomCKEditor.builtinPlugins.map((plugin) => plugin.pluginName) | ||
); | ||
CustomCKEditor.create(document.querySelector("#editor")).catch( | ||
(error) => { | ||
CustomCKEditor | ||
.create(document.querySelector("#editor"), { | ||
language: "de" | ||
}). | ||
catch(error => { | ||
console.error(error); | ||
} | ||
); | ||
}); | ||
|
||
const preview = document.getElementById('formulas'); | ||
renderMathInElement(preview); | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { add } from "@ckeditor/ckeditor5-utils/src/translation-service.js"; | ||
|
||
const translations = { | ||
"Equation preview": "Formel Vorschau", | ||
"Insert equation in TeX format.": "Gleichung im TeX-Format einfügen", | ||
"Display mode": "Zeilenumbruch", | ||
"Insert math": "Formel", | ||
}; | ||
|
||
export default function() { | ||
add("de", translations); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { add } from "@ckeditor/ckeditor5-utils/src/translation-service.js"; | ||
|
||
const translations = { | ||
"Display mode": "Line break", | ||
}; | ||
|
||
export default function() { | ||
add("en", translations); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { add } from "@ckeditor/ckeditor5-utils/src/translation-service.js"; | ||
|
||
const translations = { | ||
"Equation preview": "Vista previa", | ||
"Insert equation in TeX format.": "Insertar ecuación en formato TeX", | ||
"Display mode": "Salto de línea", | ||
"Insert math": "Fórmula", | ||
}; | ||
|
||
export default function() { | ||
add("es", translations); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { add } from "@ckeditor/ckeditor5-utils/src/translation-service.js"; | ||
|
||
const translations = { | ||
"Equation preview": "Попередній перегляд", | ||
"Insert equation in TeX format.": "Вставити рівняння у форматі TeX", | ||
"Display mode": "Розрив рядка", | ||
"Insert math": "формула", | ||
}; | ||
|
||
export default function() { | ||
add("uk", translations); | ||
} |