Implemented lua locale gettext

This commit is contained in:
2026-04-04 11:32:46 -05:00
parent 7b87347b77
commit 64735bdf43
6 changed files with 304 additions and 83 deletions

View File

@@ -14,6 +14,8 @@ module('locale')
screenSetBackground(colorCornflowerBlue())
camera = cameraCreate(CAMERA_PROJECTION_TYPE_ORTHOGRAPHIC)
text = localeGetText('cart.item_count', 2, 2)
function sceneDispose()
end
@@ -39,6 +41,6 @@ function sceneRender()
-- )
-- spriteBatchFlush()
textDraw(10, 10, "Hello World\nHow are you?", colorRed())
textDraw(10, 10, text, colorWhite())
spriteBatchFlush()
end