Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set allSeparator to empty? #89

Open
thearabbit opened this issue Aug 11, 2021 · 2 comments
Open

How to set allSeparator to empty? #89

thearabbit opened this issue Aug 11, 2021 · 2 comments

Comments

@thearabbit
Copy link

thearabbit commented Aug 11, 2021

I would like to remove space for all.
In my language don't use space for number & unit (Khmer Riel)

Ex: writtenNumber(1234); // => 'onethousandtwohundredthirtyfour'
@thearabbit
Copy link
Author

Now I fond the code

ret.push(number + '' + str)

I would to request you about this for lang option too 💯

@thearabbit
Copy link
Author

My Khmer lang

km.json
{
    "useLongScale": false,
    "baseSeparator": "",
    "unitSeparator": "",
    "base": {
      "0": "សូន្យ",
      "1": "មួយ",
      "2": "ពីរ",
      "3": "បី",
      "4": "បួន",
      "5": "ប្រាំ",
      "6": "ប្រាំមួយ",
      "7": "ប្រាំពីរ",
      "8": "ប្រាំបី",
      "9": "ប្រាំបួន",
      "10": "ដប់",
      "11": "ដប់មួយ",
      "12": "ដប់ពីរ",
      "13": "ដប់បី",
      "14": "ដប់បួន",
      "15": "ដប់ប្រាំ",
      "16": "ដប់ប្រាំមួយ",
      "17": "ដប់ប្រាំពីរ",
      "18": "ដប់ប្រាំបី",
      "19": "ដប់ប្រាំបួន",
      "20": "ម្ភៃ",
      "30": "សាបសិប",
      "40": "សែសិប",
      "50": "ហាសិប",
      "60": "ហុកសិប",
      "70": "ចិតសិប",
      "80": "ប៉ែតសិប",
      "90": "កៅសិប"
    },
    "units" : [
      "រយ",
      "ពាន់",
      "លាន",
      "ពាន់លាន",
      "លានលាន"
    ],
    "unitExceptions": []
  }

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

No branches or pull requests

1 participant