Adjust testing with localization
This commit is contained in:
@@ -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
@@ -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/
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user