WarUI

Localized function names and separators

GRID-A13-F24P2baselinePlanned

The formula language can be localized: function names (for example SUMME for SUM in German), the argument separator (';' versus ',') and the decimal separator. Formulas are stored internally in a canonical English form, so data and exports are locale-independent.

Planned. This page shows the specification from issue #192. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A grid with several formulas and a locale switcher set to en-US.

Expected behavior

Switching locale re-renders the formula text with localized names and separators. The stored canonical formula stays unchanged. Typing in the local syntax is accepted.

Planned API surface

option: formulas.localemethod: formulaEngine.registerLanguage(code, pack)method: formulaEngine.toCanonical(text, locale)method: formulaEngine.toLocalized(text, locale)

Acceptance criteria

  • The canonical-to-localized round trip is lossless for all built-in functions. (pending)
  • The argument separator follows the locale pack. (pending)
  • Custom functions can provide localized names. (pending)
  • Missing translations fall back to the canonical name. (pending)