Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Quranjson | 270 | 2 years ago | 6 | mit | ||||||
Quran JSON ~ 6236 verses, 114 surah, 30 Juz | ||||||||||
Format Message | 194 | 95 | 75 | a year ago | 45 | February 17, 2022 | 17 | mit | JavaScript | |
Internationalization Made Easy | ||||||||||
Tilejson Spec | 191 | a year ago | 22 | |||||||
JSON format for describing map tilesets. | ||||||||||
Naturaldateformat | 189 | 7 years ago | apache-2.0 | Java | ||||||
Illegal Mod Sites | 177 | 2 months ago | 18 | other | Python | |||||
📜 A list of websites that are illegally redistributing game mods | ||||||||||
Shiny.i18n | 156 | 5 | a month ago | 3 | January 16, 2023 | 15 | other | R | ||
Shiny applications internationalization made easy | ||||||||||
Bible | 131 | 4 years ago | 12 | other | ||||||
A collection of freely licensed translations of biblical text in OSIS format. | ||||||||||
Po4a | 101 | 6 days ago | 36 | gpl-2.0 | Perl | |||||
Maintain the translations of your documentation with ease (PO for anything) | ||||||||||
I18n Portable | 99 | 6 | 1 | a year ago | 15 | January 21, 2020 | 19 | mit | C# | |
Simple and cross platform internationalization/translations for Xamarin and .NET | ||||||||||
Translation Server | 97 | 2 months ago | 32 | other | JavaScript | |||||
A Node.js-based server to run Zotero translators |
The plugin automatically formats your translations in JS.
~
with non-breaking space. It’s easier to use
than UTF-8 character, and it is visible in any editor.const I18N = {
ru: {
heading: 'Структура должна быть ',
content: 'вот такая. Допускается ' +
'использовать~переносы',
array: [
'Допускается использовать массивы',
[
'И массивы внутри массивов',
'Удобно для списков'
]
]
},
en: {
heading: 'Structure should be ',
content: 'like this. It`s allowed ' +
'to use multiline~translations',
array: [
'You can use arrays',
[
'And arrays inside of arrays',
'It is used as lists in the main'
]
]
}
}
🚩 Also, you can wrap the translation object with any function if translation is a first argument of this function:
const I18N = messages({...})
const t = I18N[this.context.locale]
h('div', [
h('h1', [t.heading])
h('p', [t.content])
])
This is mine very first Babel Plugin so please send an Issue if you have any suggestions how to improve this.
$ yarn add babel-plugin-transform-typograf
.babelrc
: "plugins": [
...
"react-hyperscript",
"transform-typograf"
]
ru
🇷🇺 and en
🇺🇸 languages only for now;Run the following command to run test:
$ yarn test
It compares actual.js
after transformation with an expected.js
.
Please note that due to unexpected behavior of Babel (it forces
escaping of Cyrillic symbols), I have to add unescaping function
to the test file.
Special thanks to Andrey Sitnik