From 96427e94cb2c831003ecb0bddabcd9232deb900f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= Date: Mon, 23 Oct 2023 15:57:03 +0200 Subject: [PATCH] DevLangCodeRetriever: Adjust property-id used for language code This was changed in production to user the broader coverage provided by IETF code, see T348923. Bug: T348923 --- src/data-access/DevLangCodeRetriever.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data-access/DevLangCodeRetriever.ts b/src/data-access/DevLangCodeRetriever.ts index 6c68e2e8..07d4d79a 100644 --- a/src/data-access/DevLangCodeRetriever.ts +++ b/src/data-access/DevLangCodeRetriever.ts @@ -6,7 +6,7 @@ export default class DevLangCodeRetriever implements LangCodeRetriever { const response = await fetch( 'https://www.wikidata.org/w/api.php?' + new URLSearchParams( { action: 'wbgetclaims', entity: itemId, - property: 'P218', + property: 'P305', props: '', format: 'json', origin: '*',