An open API service indexing awesome lists of open source software.

https://github.com/stepicorg/stepik-i18n

UI Translations for Stepik
https://github.com/stepicorg/stepik-i18n

Last synced: 11 months ago
JSON representation

UI Translations for Stepik

Awesome Lists containing this project

README

          

# Hello!

This is [Stepik](https://stepik.org)'s UI translations.

At this moment there are 7 locales:
* [๐Ÿ‡บ๐Ÿ‡ธ English](translations/en.yml) (default, falls back here if some translation is missing)
* [๐Ÿ‡ท๐Ÿ‡บ Russian](translations/ru.yml)
* [๐Ÿ‡บ๐Ÿ‡ฆ Ukrainian](translations/uk.yml)
* [๐Ÿ‡ง๐Ÿ‡พ Belarusian](translations/be.yml)
* [๐Ÿ‡จ๐Ÿ‡ณ Chinese](translations/zh-hans.yml)
* [๐Ÿ‡ช๐Ÿ‡ธ Spanish](translations/es.yml)
* [๐Ÿ‡ฉ๐Ÿ‡ช Deutsch](translations/de.yml)

## How To Contribute

Create a pull request to this repo. [Learn more about pull requests](https://help.github.com/articles/about-pull-requests/) if you're new to GitHub.

Both minor fixes and major changes are welcome! You can even add a new language.

All accepted changes here will be live on https://stepik.org within 2 weeks.

:bulb: ProTip: to associate UI elements with translations, run i18nDebugKeys() in the browser console when you are at https://stepik.org. Execute this command again to hide the translation keys. Expand this section to watch a demo.

![i18nDebugKeys demo](https://user-images.githubusercontent.com/4932134/72613438-4fab9300-3951-11ea-95cc-24d996f6193d.gif)

:bulb: ProTip: to find out missing translations in your locale you are working on, add the locale into requiresTranslation function in test-config.js.

```js
requiresTranslation(key, locale) {
return locale === 'ru' || locale === 'en' || locale === 'YOUR_LOCALE';
}
```

### Translations Format

[ICU Message Syntax](https://formatjs.io/docs/core-concepts/icu-syntax/) is used.

### Testing & linting translations

- `pip install -r requirements.txt`
- `npm install`
- `npm test`

## Contributors

* Stepik Team (English and Russian translations; Spanish and Chinese rough auto-translation)
* [ะะฝะดั€ั–ะน ะšั€ะฐัะพั‚ะบั–ะฝ](https://github.com/zimorodokan) (Ukrainian translation)
* [@ethnoby](https://github.com/ethnoby) team (Belarusian translation)
* [Maycon M. Kopelvski](https://github.com/mayconmk) (Brazilian Portuguese translation)
* add your name here