fix(worker): S2 proactive tips logic, i18n parity, hardened test DB reset
- processProactiveTips now iterates all expiring items sorted by urgency and emits the first candidate with a recipe that clears 7-day dedup. - Add pt-PT proactive-tip templates; remove en-GB duplicate; parity test asserts against shared-types SUPPORTED_LANGUAGE_TAGS. - Serialize DB test setup via turbo dependencies; seed truncates only *_test DBs, guarded by both --test flag and DB name suffix.
This commit is contained in:
@@ -31,6 +31,22 @@ export interface LocaleContext {
|
||||
currencyCode: string;
|
||||
}
|
||||
|
||||
/** Kanoniska UI-språk (BCP 47) som alla notismallar måste täcka. */
|
||||
export const SUPPORTED_LANGUAGE_TAGS = [
|
||||
"sv-SE",
|
||||
"en-US",
|
||||
"de-DE",
|
||||
"fr-FR",
|
||||
"es-ES",
|
||||
"it-IT",
|
||||
"pl-PL",
|
||||
"nl-NL",
|
||||
"fi-FI",
|
||||
"da-DK",
|
||||
"nb-NO",
|
||||
"pt-PT",
|
||||
] as const;
|
||||
|
||||
export const DEFAULT_LOCALE_PREFERENCES: UserLocalePreferences = {
|
||||
languageTag: "sv-SE",
|
||||
regionCode: "SE",
|
||||
|
||||
Reference in New Issue
Block a user