Quotes and number parsing for each language/locale #12
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
i18n/l10n
internationalisation & localisation
Background
The “Use Unicode smart quotes” option currently just uses the English smart quotes. The “Convert fractions and mathematical constants to Unicode characters” option currently only accepts the period for the decimal point and it does not support numbers with thousand separators, such as
1234.25
. This is mainly because that is all theparseFloat()
function supports (see here).Proposed solution
For the “Use Unicode smart quotes” option, @rugk suggested that it use the quotes for each language/locale in rugk/awesome-emoji-picker#93 (review). See here for a table of the quotes for different languages. I would need to know which quote character(s) are on the keyboards for each locale and which smart quote character(s) it should automatically replace (autocorrect) them with.
For the “Convert fractions and mathematical constants to Unicode characters” option, I propose that it support locale formatted numbers, with the locale decimal point and thousand separators. For example, some locales write numbers like
1,234.25
, while others would write the same number as1.234,25
.The text was updated successfully, but these errors were encountered: