First Day of Week Locale Lookup

Exact independently verified locale/CLDR edition first-day-of-week lookup, Monday 1..Sunday7; not date order, week numbering or inferred current host locale. Caller establishes language, dialect, method and reference context; no automatic identity or universal language-wide claim.

Description

The first weekday is a locale convention rather than a property of an individual date.

The first weekday is a locale convention rather than a property of an individual date.1

Keep the convention's source and numbering scheme explicit.

When to use First Day of Week Locale Lookup

Use this tool to calculate or review the supplied observations under the stated rules. Specify the language variety, analysis, source edition and population or inventory definition.

How to use First Day of Week Locale Lookup and understand its results

  1. Specify the language variety, analysis, source edition and population or inventory definition.
  2. Enter callerLocaleIds, callerVerifiedFirstWeekdaysMondayOne, queryLocaleId, using the field meanings and rules below, then run the tool.
  3. Read callerFirstWeekdayMondayOne, using the output meanings and calculation rules below.
  4. Correct any reported input issue and run again. Before using a successful result, check the stated units, signs, reference scope and observation coverage.
Input fieldMeaningValue typeRequirement
callerLocaleIdsCaller locale idslist of stringRequired
callerVerifiedFirstWeekdaysMondayOneCaller verified first weekdays monday onelist of numberRequired
queryLocaleIdQuery locale id; use the exact reference token or coordinate domain stated belowstringRequired

Supply nonempty aligned unique nonblank locale IDs and safe-integer weekdays in 1..7, where Monday is one and Sunday seven. Match the query locale exactly and return its supplied weekday. Unknown locale IDs fail.

firstWeekday=weekdayNumbers[indexOf(localeIds,exactQuery)]

Use the matching field units and the exact boundary, ordering and reference rules above.

Output fieldMeaningValue type
callerFirstWeekdayMondayOneCaller first weekday monday onenumber
json
{
  "input": {
    "callerLocaleIds": [
      "locale-a",
      "locale-b"
    ],
    "callerVerifiedFirstWeekdaysMondayOne": [
      1,
      7
    ],
    "queryLocaleId": "locale-b"
  },
  "output": {
    "callerFirstWeekdayMondayOne": 7
  }
}

Limitations and assumptions

No locale database or date computation is included. The numbering convention and source edition must be established independently.

Missing required fields, unknown fields, wrong types and violated rules return input issues. Numeric values and outputs must be finite. Lists and matrices must be dense, without missing cells. Numeric lists allow at most 10000 entries; ordinary string lists allow at most 128 strings of 128 UTF-16 units each; numeric matrices allow at most 128 rows and 128 columns, subject to narrower requirements above.

Alternative or Complementary methods

For a related step, use UN Six Official Languages Checker: The United Nations has six official languages: Arabic, Chinese, English, French, Russian and Spanish. For a complementary comparison, use Family-First Name Order Culture Classifier: Personal-name order depends on naming tradition and usage context.

References

  1. First Day of Week Locale Lookup — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies