Comments (3)
Hi @floydding,
I understand we're missing a lot of languages, but luckily, they're not too difficult to add!
We have an issue open to address programatically adding pluralisation rules from an XML file (#2, which you're welcome to create a PR against), but if you need Spanish in there now, you're welcome to open a PR just adding that too.
All you need to do is update locales.py
with a new function for Spanish (because it doesn't look like any of our current functions will do), and then add that to the mapping for es
. I've uploaded the most recent version (v34) of the CLDR's pluralisation rules that you'll need to refer to here: https://gist.github.com/siame/4e2e74eadbe2530d6e4c57072f8b6cea.
Let me know if you run into any issues!
from pyseeyou.
Hi i have submitted pull request for adding support for Spanish. Thanks
from pyseeyou.
Addressed in #6.
from pyseeyou.
Related Issues (9)
- Python 3 compatibility HOT 2
- Auto-generate locale pluralisation functions HOT 5
- Add a license HOT 2
- Python 3.6 - DeprecationWarning: invalid escape sequence
- Formatted Argument support
- escape sequences for message syntax are throwing an error HOT 2
- Using empty string in conditional formatting return None
- [bug] Passing in options not in the list should fallback to 'other' while the library just crash HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyseeyou.