Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: i18n hr-HR #1162

Merged
merged 3 commits into from
Aug 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ You can merge columns of the table header and body area.
## 🎨 Features

* [**Viewer**](https://github.com/nhn/tui.editor/tree/master/apps/editor/docs/viewer.md) : Supports a mode to display only markdown data without an editing area.
* [**Internationalization (i18n)**](https://github.com/nhn/tui.editor/tree/master/apps/editor/docs/i18n.md) : Supports English, Dutch, Korean, Japanese, Chinese, Spanish, German, Russian, French, Ukrainian, Turkish, Finnish, Czech, Arabic, Polish, Galician, Swedish, Italian, Norwegian + language and you can extend.
* [**Internationalization (i18n)**](https://github.com/nhn/tui.editor/tree/master/apps/editor/docs/i18n.md) : Supports English, Dutch, Korean, Japanese, Chinese, Spanish, German, Russian, French, Ukrainian, Turkish, Finnish, Czech, Arabic, Polish, Galician, Swedish, Italian, Norwegian, Croatian + language and you can extend.

## 🐾 Examples

Expand Down
52 changes: 52 additions & 0 deletions apps/editor/src/js/i18n/hr-hr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/**
* @fileoverview I18N for Croatian
* @author Hrvoje A. <hrvoj3e@gmail.com>
*/
import Editor from '../editor';

Editor.setLanguage(['hr', 'hr-HR'], {
Markdown: 'Markdown',
WYSIWYG: 'WYSIWYG',
Write: 'Piši',
Preview: 'Pregled',
Headings: 'Naslovi',
Paragraph: 'Paragraf',
Bold: 'podebljano',
Italic: 'kurziv',
Strike: 'prcrtano',
Code: 'Uklopljeni kôd',
Line: 'Linija',
Blockquote: 'Blok citat',
'Unordered list': 'Neporedana lista',
'Ordered list': 'Poredana lista',
Task: 'Task',
Indent: 'Povećaj uvlaku',
Outdent: 'Smanji uvlaku',
'Insert link': 'Umetni link',
'Insert CodeBlock': 'Umetni blok kôda',
'Insert table': 'Umetni tablicu',
'Insert image': 'Umetni sliku',
Heading: 'Naslov',
'Image URL': 'URL slike',
'Select image file': 'Odaberi slikovnu datoteku',
Description: 'Opis',
OK: 'OK',
More: 'Više',
Cancel: 'Odustani',
File: 'Datoteka',
URL: 'URL',
'Link text': 'Tekst linka',
'Add row': 'Dodaj redak',
'Add col': 'Dodaj stupac',
'Remove row': 'Ukloni redak',
'Remove col': 'Remove stupac',
'Align left': 'Poravnaj lijevo',
'Align center': 'Poravnaj centrirano',
'Align right': 'Poravnaj desno',
'Remove table': 'Ukloni tablicu',
'Would you like to paste as table?': 'Zalite li zalijepiti kao tablicu?',
'Text color': 'Boja teksta',
'Auto scroll enabled': 'Omogući auto klizanje',
'Auto scroll disabled': 'Onemogući auto klizanje',
'Choose language': 'Odabir jezika'
});
8 changes: 8 additions & 0 deletions plugins/table-merged-cell/src/js/langs.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,13 @@ export function addLangs(editor) {
'Cannot paste row merged cells into the table header':
'Kan ikke lime inn rad med sammenslåtte celler'
});

Editor.setLanguage(['hr', 'hr-HR'], {
'Merge cells': 'Spoji ćelije',
'Unmerge cells': 'Odspoji ćelije',
'Cannot change part of merged cell': 'Ne mogu mijenjati dio spojene ćelije.',
'Cannot paste row merged cells into the table header':
'Ne mogu zaljepiti redak spojenih ćelija u zaglavlje tablice'
});
}
}