Skip to content

Commit 926f234

Browse files
authored
Use english locale for tests and docs (#113671)
English doesn't change between JDK 22 and 23
1 parent 5a1fe5d commit 926f234

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/reference/search/search-your-data/search-your-data.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ GET /my-index-000001/_search
124124
"script": {
125125
"source":
126126
"""emit(doc['@timestamp'].value.dayOfWeekEnum
127-
.getDisplayName(TextStyle.FULL, Locale.ROOT))"""
127+
.getDisplayName(TextStyle.FULL, Locale.ENGLISH))"""
128128
}
129129
}
130130
},

x-pack/plugin/eql/qa/rest/src/yamlRestTest/resources/rest-api-spec/test/eql/10_basic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ setup:
1313
day_of_week:
1414
type: keyword
1515
script:
16-
source: "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))"
16+
source: "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ENGLISH))"
1717
- do:
1818
bulk:
1919
refresh: true

x-pack/plugin/eql/qa/rest/src/yamlRestTest/resources/rest-api-spec/test/eql/20_runtime_mappings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ setup:
99
day_of_week:
1010
type: keyword
1111
script:
12-
source: "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))"
12+
source: "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ENGLISH))"
1313
- do:
1414
bulk:
1515
refresh: true

0 commit comments

Comments
 (0)