Localization part 2 (#332)

* More localization work

* instance testing translation

* Row cell translations

* safety check
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2024-03-18 22:53:08 -04:00
1 parent 48993dd9f5
commit 9a7db6aab2
27 files changed
+1201 -270

No files matched your search

@@ -17,22 +17,6 @@ namespace Tests
m.assertEqual(TimeUtils.GetFormattedTime(length), formattedString)
end function
@it("formats the time left correctly")
@params(invalid, "N/A")
@params(-1, "now")
@params(0, "now")
@params(1, "1 second")
@params(7, "7 seconds")
@params(8285, "2 hours")
@params(1282085, "15 days")
function _(length as dynamic, formattedString as string)
time = invalid
if length <> invalid
time = TimeUtils.Now().AsSeconds() + length
end if
m.assertEqual(TimeUtils.GetFormattedTimeLeft(time), formattedString)
end function
end class
end namespace