Module 11 · In Studio · challenge 3 of 3 in this lesson

nextDrillText asks the translator for Hud_NextDrill with a Seconds parameter rounded up

A test in Studio grades it and prints a pass code.

Open

Level 3, Professional

Challenge

Start from the m14-ship tag in the game repo, then make the countdown translatable in challenges/localization_work.luau. The test uses a fake translator, so no published table is needed.

Press Play and run this in the server command bar:

luau
game.ServerScriptService.RunGameTests:Invoke("localization")
Start from
The game at milestone m14 (download)
Grade it
In Studio, press Play, then run game.ServerScriptService.RunGameTests:Invoke("localization") in the server command bar. Copy the pass code from Output.

Done means

  • nextDrillText asks the translator for Hud_NextDrill with a Seconds parameter rounded up
  • It falls back to the English line with no translator, and when FormatByKey throws
  • A late tick shows 0, never a negative number
  • challenges/localization.luau prints TEST PASS for all seven cases

The Course Runner prints this code when the test passes.