Get user locale

GET /closeAPI/api/close/preference/{user}

Responses

GET /closeAPI/api/close/preference/{user}
curl \
 --request GET 'http://close-service:8082/closeAPI/api/close/preference/{user}'
Response examples (200)
{
  "userId": "string",
  "locale": {
    "language": "string",
    "displayName": "string",
    "country": "string",
    "variant": "string",
    "script": "string",
    "unicodeLocaleAttributes": [
      "string"
    ],
    "unicodeLocaleKeys": [
      "string"
    ],
    "displayLanguage": "string",
    "displayScript": "string",
    "displayCountry": "string",
    "displayVariant": "string",
    "extensionKeys": [
      "string"
    ],
    "iso3Language": "string",
    "iso3Country": "string"
  },
  "zoneId": {
    "id": "string",
    "rules": {
      "fixedOffset": true,
      "transitions": [
        {
          "offsetBefore": {
            "totalSeconds": 42,
            "id": "string"
          },
          "offsetAfter": {
            "totalSeconds": 42,
            "id": "string"
          },
          "duration": {
            "seconds": 42,
            "zero": true,
            "nano": 42,
            "negative": true,
            "positive": true,
            "units": [
              {
                "durationEstimated": true,
                "timeBased": true,
                "dateBased": true
              }
            ]
          },
          "gap": true,
          "dateTimeAfter": "2025-05-04T09:42:00Z",
          "dateTimeBefore": "2025-05-04T09:42:00Z",
          "instant": "2025-05-04T09:42:00Z",
          "overlap": true
        }
      ],
      "transitionRules": [
        {
          "month": "JANUARY",
          "timeDefinition": "UTC",
          "standardOffset": {
            "totalSeconds": 42,
            "id": "string"
          },
          "offsetBefore": {
            "totalSeconds": 42,
            "id": "string"
          },
          "offsetAfter": {
            "totalSeconds": 42,
            "id": "string"
          },
          "dayOfWeek": "MONDAY",
          "dayOfMonthIndicator": 42,
          "localTime": {
            "hour": 42,
            "minute": 42,
            "second": 42,
            "nano": 42
          },
          "midnightEndOfDay": true
        }
      ]
    }
  }
}