Adjust testing with localization

This commit is contained in:
adilallo
2026-01-30 18:39:15 -07:00
parent 1280844706
commit ebd025fe27
23 changed files with 139 additions and 47 deletions
+1 -4
View File
@@ -11,10 +11,7 @@ type Messages = typeof messages;
* @param key - Dot-separated key path (e.g., "heroBanner.title")
* @returns The translation string or the key if not found
*/
export function getTranslation(
messages: Messages,
key: string,
): string {
export function getTranslation(messages: Messages, key: string): string {
const keys = key.split(".");
let value: any = messages;
+1 -1
View File
@@ -1,6 +1,6 @@
/**
* Type definitions for translation keys
*
*
* These types provide type safety when accessing translation keys.
* The actual types are inferred from the JSON files in messages/en/
*/