Skip to content

Commit

Permalink
feat: i18n hr-HR (#1162)
Browse files Browse the repository at this point in the history
* feat: i18n hr-HR

Croatian language

* docs: add Croatian to Internationalization section

Add language information added to the content of Features> Internationalization (i18n)

* feat: add Croatian language hr-HR
  • Loading branch information
hrvoj3e authored Aug 25, 2020
1 parent be8f7b3 commit 855abe6
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
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'
});
}
}

0 comments on commit 855abe6

Please sign in to comment.