All Projects → rolepoint → pyseeyou

rolepoint / pyseeyou

Licence: MIT License
A Python ICU MessageFormat parsing tool

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pyseeyou

cldr-engine
Internationalization and localization in Typescript with Unicode CLDR, batteries included
Stars: ✭ 34 (+161.54%)
Mutual labels:  i18n, messageformat
Js Lingui
🌍📖 A readable, automated, and optimized (5 kb) internationalization for JavaScript
Stars: ✭ 3,249 (+24892.31%)
Mutual labels:  i18n, messageformat
Angular-Gulp-Boilerplate
Clean but full-featured AngularJS boilerplate using Gulp workflow and best practices
Stars: ✭ 30 (+130.77%)
Mutual labels:  i18n
SonataTranslationBundle
SonataTranslationBundle
Stars: ✭ 72 (+453.85%)
Mutual labels:  i18n
acts as localized
Localization accessor mechanism for AR models
Stars: ✭ 12 (-7.69%)
Mutual labels:  i18n
tr4n5l4te
Use Google Translate without an API key.
Stars: ✭ 32 (+146.15%)
Mutual labels:  i18n
v-page
A simple pagination bar, including length Menu, i18n support, based on Vue2.x
Stars: ✭ 85 (+553.85%)
Mutual labels:  i18n
pydantic-i18n
pydantic-i18n is an extension to support an i18n for the pydantic error messages.
Stars: ✭ 32 (+146.15%)
Mutual labels:  i18n
humanize time
Adds the humanize method to reports the approximate distance in time between two Time. humanize supports i18n translations too so it can be used in internationalized apps.
Stars: ✭ 20 (+53.85%)
Mutual labels:  i18n
translation
👅 Translations (symfony/translation) to Nette Framework (@nette)
Stars: ✭ 55 (+323.08%)
Mutual labels:  i18n
react-put
A flexible formatter and i18n interface for React.
Stars: ✭ 23 (+76.92%)
Mutual labels:  i18n
extract-react-intl
Extract react-intl messages
Stars: ✭ 18 (+38.46%)
Mutual labels:  i18n
wlc
Weblate command line client
Stars: ✭ 22 (+69.23%)
Mutual labels:  i18n
address-formatter
Universal international address formatter in Javascript
Stars: ✭ 65 (+400%)
Mutual labels:  i18n
gettext-extractor
A flexible and powerful Gettext message extractor with support for JavaScript, TypeScript, JSX and HTML.
Stars: ✭ 82 (+530.77%)
Mutual labels:  i18n
django-languages-plus
Provides models and fixtures for working with both common languages and 'culture codes' or locale codes, like pt-BR.
Stars: ✭ 21 (+61.54%)
Mutual labels:  i18n
inlang
Open Source Localization Solution for Software.
Stars: ✭ 160 (+1130.77%)
Mutual labels:  i18n
archived-bot
A Discord music bot serving music in over 3 million discord servers
Stars: ✭ 496 (+3715.38%)
Mutual labels:  i18n
icu-demos
sample apps for ICU (formerly icuapps)
Stars: ✭ 13 (+0%)
Mutual labels:  i18n
nuxt-i18n-boilerplate
A boilerplate for rapid application development using Nuxt i18n.
Stars: ✭ 20 (+53.85%)
Mutual labels:  i18n

pyseeyou

A Python ICU MessageFormat parsing tool, using parsimonious to parse a PEG, which has been taken from messageformat.js.

Compatible with Python 2.7, 3.5, 3.6 and 3.7

Usage

from pyseeyou import format

result = format('''{GENDER, select,
                       male {He}
                     female {She}
                      other {They}
                   } found {NUM_RESULTS, plural,
                       one {1 result}
                     other {# results}
                   } in {NUM_CATEGORIES, plural,
                         one {1 category}
                       other {# categories}
                   }.''',
        {'GENDER': 'male', 'NUM_RESULTS': 1, 'NUM_CATEGORIES': '2'}, 'en')

=> u'He found 1 result in 2 categories.'
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].