Internationalization features
Configure HyperFormula to match the languages and regions of your users.
Function names and errors
Section titled “Function names and errors”Each of HyperFormula’s built-in functions and errors is available in 18 languages.
You can easily switch between languages (language).
When adding a custom function, you can define the function’s name in every language that you support.
To support more languages, add a custom language pack.
Date and time formats
Section titled “Date and time formats”To match a region’s calendar conventions, you can set multiple date formats (dateFormats) and time formats (timeFormats).
By default, HyperFormula uses the European date and time formats. You can easily change them.
You can also add custom ways of handling dates and times.
Number format
Section titled “Number format”To match a region’s number format, configure HyperFormula’s decimal separator (decimalSeparator) and thousands separator (thousandSeparator).
By default, HyperFormula uses the European number format (1000000.00):
decimalSeparator: '.', // set by defaultthousandSeparator: '', // set by defaultTo use the US number format (1,000,000.00), set:
decimalSeparator: '.', // set by defaultthousandSeparator: ',',Currency symbol
Section titled “Currency symbol”To match your users’ currency, configure recognized currency symbols and (optionally) custom TEXT output formatting. Both sides are covered in the dedicated Currency handling guide.
String comparison rules
Section titled “String comparison rules”To make sure that language-sensitive strings are compared in line with your users’ language (e.g., Préservation vs. Preservation), set HyperFormula’s string comparison rules (localeLang).
The value of localeLang is processed by Intl.Collator, a JavaScript standard object.
The default setting is:
localeLang: 'en', // set by defaultTo set the en-US string comparison rules, set:
localeLang: 'en-US',To further customize string comparison rules, use these options:
Compatibility with other spreadsheet software
Section titled “Compatibility with other spreadsheet software”For information on compatibility with locale-dependent syntax in other spreadsheet software, see:
en-US configuration
Section titled “en-US configuration”This configuration aligns HyperFormula with the en-US locale. Due to the configuration of separators, it might not be fully compatible with formulas coming from other spreadsheet software.
language: 'enUS',dateFormats: ['MM/DD/YYYY', 'MM/DD/YY', 'YYYY/MM/DD'],timeFormats: ['hh:mm', 'hh:mm:ss.sss'], // set by defaultdecimalSeparator: '.', // set by defaultthousandSeparator: ',',functionArgSeparator: ';', // might cause incompatibility with other spreadsheetscurrencySymbol: ['$', 'USD'],localeLang: 'en-US',en-US demo
Section titled “en-US demo”This demo shows HyperFormula configured for the en-US locale.
| Name | Lunch time | Date of Birth | Age | Salary |
|---|