Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

Optional mapLocale function added to parse() method. #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tohagan
Copy link

@tohagan tohagan commented Aug 31, 2018

New Features

  • parse() can now decode locales using either "_" or "-" as the delimiter.
  • pick() maps older Chinese locales to new Chinese locales assuming the default script for each country..
  • parse() - supports optional custom locale mapping function.
  • Unit tested.

References:

…es using either "_" or "-". pick() maps older Chinese locales to match script or region.
@popenkomaksim
Copy link

Hi, looks like this functionality is missing for Apple's locale implmentions too.

Any chances to merge this PR?

@Lucent
Copy link

Lucent commented May 16, 2021

zh-CN and TW mapping to zh-Hant and Hans is become an important issue in parsing languages. If this package is abandoned I'd love to use your fork instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants