mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-09-01 12:26:08 +08:00
fix: fallback locale for unsubscribe pages
This commit is contained in:
parent
7795c01ae7
commit
3867b46fa2
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ const strings: Record<any, Record<string, string>> = {
|
|||
|
||||
const keysForLocale = (locale: string | undefined) => {
|
||||
const baseLocale = locale?.split('-')[0] ?? 'en'
|
||||
return strings[baseLocale]
|
||||
return strings[baseLocale] ?? strings.en
|
||||
}
|
||||
|
||||
export const emailUnsubscribeSchema: JSONSchemaType<EmailUnsubscribeParams> = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue