globalization-regional-definitions
Reactive icon

Globalization - Regional Definitions

Stable version 1.0.1 (Compatible with OutSystems 11)
Uploaded
 on 14 April 2022
 by 
5.0
 (1 rating)
globalization-regional-definitions

Globalization - Regional Definitions

Documentation
1.0.1

Available functions:

Country:

  • Country name: Returns the country formatted according to the regional settings of the selected language. If no language is set, it uses the browser's primary language.
  • Language: Returns the language formatted according to the regional settings of the selected language.


Currency:

  • User currency: Returns the currency defined for the user.
  •  Currency name: Returns the currency name formatted according to the regional settings of the selected language.
  • Currency value: Returns the monetary value formatted according to the regional settings of the selected language.


Date:

  • User date format: Returns the dateformat for the set language.
  • Date: Returns the date formatted according to the regional settings of the selected language.
    • Output's depending on the format (e.g. for en-US):
      • Full: Monday, June 14, 2021
      • Long: June 14, 2021
      • Medium: Jun 14, 2021
      • Short: 6/14/21
  • Date relative: Returns the difference between two dates formatted according to the regional settings of the selected language.
    • Output's depending on the format (e.g. for en-US):
      • Relative    Value   Return
      • Second    -3      3 seconds ago
      • Second    0       now
      • Second    3       in 3 seconds
      • Minute     -3      3 minutes ago
      • Minute     0       this minute
      • Minute     3       in 3 minutes
      • Hour        -3      3 hours ago
      • Hour        0       this hour
      • Hour        3       in 3 hours
      • Day         -3      3 days ago
      • Day         0       today
      • Day         3       in 3 days
      • Week      -3      3 weeks ago
      • Week      0       this week
      • Week      3       in 3 weeks
      • Month     -3      3 months ago
      • Month     0       this month
      • Month     3       in 3 months
      • Year        -3      3 years ago
      • Year        0       this year
      • Year        3       in 3 years
  • Date range: Returns the range dates formatted according to the regional settings of the selected language.
    • Output's depending on the format (e.g. for en-US):
      • Full: Wednesday, January 10, 2007 – Thursday, January 10, 2008
      • Long: January 10, 2007 – January 10, 2008
      • Medium: Jan 10, 2007 – Jan 10, 2008
      • Short: 1/10/07 – 1/10/08
  • Time: Returns the time formatted according to the regional settings of the selected language.
    • Output's depending on the format (e.g. for en-US):
      • Full: 11:29:35 AM Western European Summer Time
      • Long: 11:29:35 AM GMT+1
      • Medium: 11:29:35 AM
      • Short: 11:29 AM
  • Month: Returns the month formatted according to the regional settings of the selected language.
    • Output's depending on the format (e.g. for en-US):
      • Full, Long: June
      • Medium, Short: Jun
  • Weekday: Returns the weekday formatted according to the regional settings of the selected language.
    • Output's depending on the format (e.g. for en-US):
      • Full, Long: Thursday
      • Medium, Short: Thu


Number:

  • Decimal: Returns the number formatted according to the regional settings of the selected language.
  • Percent: Returns the percent number formatted according to the regional settings of the selected language.