-
|
Hi I'm having a difficult time wrapping my head around dynamic data translation. Assuming I've the following translation data: const en = { } satisfies BaseTranslation; I'm using SvelteKit Version 1.0. 1.) I want to generate a list of all Genres. How would I create the list from the Translation Data. Is it even the right way to do it? I hope you can help me better understand how to approach those needs. Best regards Tobias |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hi @Tobfather, the translation function ( const LL_Genre = $LL.Data.TextSettingsData
const genres = Object.keys(LL_Genre)
const translated_genre = LL_Genre.Epic.FairyTale() // => 'fairy table' <- probably a typo in your base translation??
... |
Beta Was this translation helpful? Give feedback.
Hi @Tobfather,
the translation function (
$LL) behaves like an object. You can do any kind of object modifications on them.