use translation of level title

pull/224/head
Jon Eugster 11 months ago
parent 3124d90cd6
commit 9b05a27888

@ -418,7 +418,7 @@ function PlayableLevel({impressum, setImpressum, toggleInfo, togglePreferencesPo
pageNumber={pageNumber} setPageNumber={setPageNumber}
isLoading={level.isLoading}
levelTitle={(mobile ? "" : t("Level")) + ` ${levelId} / ${gameInfo.data?.worldSize[worldId]}` +
(level?.data?.title && ` : ${level?.data?.title}`)}
(level?.data?.title && ` : ${t(level?.data?.title, {ns: gameId})}`)}
toggleImpressum={toggleImpressum}
toggleInfo={toggleInfo}
togglePreferencesPopup={togglePreferencesPopup}

@ -42,7 +42,7 @@ elab "Title" t:str : command => do
| .Level => modifyCurLevel fun level => pure {level with title := title}
| .World => modifyCurWorld fun world => pure {world with title := title}
| .Game => modifyCurGame fun game => pure {game with
title := t.getString
title := title
tile := {game.tile with title := title}}
/-- Define the introduction of the current game/world/level. -/

Loading…
Cancel
Save