- Translate hardcoded German terms in IngredientsPage and InstructionsPage - Migrate both components to Svelte 5 runes (, , ) - Fix language switcher to use correct short names via shared store - Add recipeTranslationStore for recipe-specific language switching
10 lines
250 B
TypeScript
10 lines
250 B
TypeScript
import { writable } from 'svelte/store';
|
|
|
|
interface RecipeTranslationData {
|
|
germanShortName: string;
|
|
englishShortName?: string;
|
|
hasEnglishTranslation: boolean;
|
|
}
|
|
|
|
export const recipeTranslationStore = writable<RecipeTranslationData | null>(null);
|