update locale in klipy api (#10432)
This commit is contained in:
@@ -60,8 +60,8 @@ function createKlipyApi<Input extends object>(
|
|||||||
|
|
||||||
const locale = getLocales?.()?.[0]
|
const locale = getLocales?.()?.[0]
|
||||||
|
|
||||||
if (locale) {
|
if (locale?.regionCode) {
|
||||||
params.set('locale', locale.languageTag.replace('-', '_'))
|
params.set('locale', locale.regionCode.toLowerCase())
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const [key, value] of Object.entries(input)) {
|
for (const [key, value] of Object.entries(input)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user