Created on 29 June 2021
icon_unfollowing
Login to follow
globalization-regional-definitions

Globalization - Regional Definitions

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

Globalization - Regional Definitions

Details
Javascript functions that represents dates, numbers, currency, and other data according to the language and regional settings defined by user or browser.
Read more

Use these client actions to get the different regional definitions/translations for each language.

For all functions, if no language is set, the browser language is used by default.


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.


Release notes (1.0.1)

Updated References for OutsystemsUI 2.8.3

Reviews (0)
Category
Functional libraries & utilities, Other functions & libraries
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
Globalization - Regional Definitions has no dependencies.
Application Objects
Globalization - Regional Definitions has 2 AOs.
Team
Compatible with
Version 11
11.9.2 or higher
11.7.6 to 11.9.0
11.0.606 to 11.0.615
Database:
All
Asset consumers
No consumers yet.
Weekly downloads