Current Culture (LogiX node)

From Neos Wiki
Revision as of 14:35, 19 February 2022 by Aesc (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Other languages:
English • ‎日本語
Current Culture
'Current Culture' LogiX node
Inputs
Outputs
  CultureInfo *

The Current Culture node outputs information about a user's current locale.

Usage

This node provides information used when formatting data to strings (with the To String node) or parsing data from strings (using nodes under the Parsing category). The output from Current Culture can be provided to the FormatProvider of compatible nodes, an autocast node will be created upon connection. Locale information defines the default format for dates, times, numbers, currency values, the sorting order of text, casing conventions, and string comparisons for the user's; this can vary between countries and therefore it is possible that outputs from affected nodes may differ for different users depending on their locale. If such variance is undesirable consider using the Invariant Culture node instead.

Examples

Imagine that the float 3.14 is connected to the V input of a To String node, the string "C2" is connected to the Format input and Current Culture is connected to the FormatProvider input. For users in the en-GB (British English) locale the output from To String will be £3.14. However, for users in the en-US locale the output will be $3.14 while for users in many European countries it would be €3.14.

Node Menu

Formatting
Back Current Culture Invariant Culture