You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 23, 2019. It is now read-only.
This pkg only consume root locales. This means we don't care (maybe we should jejejeje), about fr-FR, or en-BR, we only care about en and fr as the top level locales. The routine to analyze all locales in CLDR and pick up the root locales is here: https://github.com/yahoo/intl-messageformat/blob/master/tasks/build-data.js#L7-L16
This is where things gets funky, because we will like to collect data instead and creating the logic around the data rather than a function that we don't know how it works. The content of that function is something along these lines:
Locales
This pkg only consume root locales. This means we don't care (maybe we should jejejeje), about
fr-FR
, oren-BR
, we only care abouten
andfr
as the top level locales. The routine to analyze all locales in CLDR and pick up the root locales is here:https://github.com/yahoo/intl-messageformat/blob/master/tasks/build-data.js#L7-L16
Plural rules extraction
This pkg uses
cldr.extractPluralRuleFunction()
to collect "a function" that contains the pluralization and gender rules:https://github.com/yahoo/intl-messageformat/blob/master/tasks/build-data.js#L98
This is where things gets funky, because we will like to collect data instead and creating the logic around the data rather than a function that we don't know how it works. The content of that function is something along these lines:
The text was updated successfully, but these errors were encountered: