- Enhanced tests to ensure consistent messageId generation for legacy inbox rows lacking a messageId. - Updated test descriptions for better clarity regarding the new messageId handling. - Adjusted test expectations to align with the updated behavior of relaying legacy inbox rows with generated messageIds.
13 lines
386 B
TypeScript
13 lines
386 B
TypeScript
import en from "~/content/en.json";
|
|
import ru from "~/content/ru.json";
|
|
import type { LandingContent, LocalizedContent } from "~/types/content";
|
|
import type { LocaleCode } from "~/data/i18n";
|
|
|
|
export const contentByLocale: LocalizedContent = {
|
|
en,
|
|
ru
|
|
};
|
|
|
|
export const getContent = (locale: LocaleCode): LandingContent => {
|
|
return contentByLocale[locale] ?? contentByLocale.en;
|
|
};
|