Localization test (#331)

* Localization test

* More translations

* More translations

* Setup the tooling and validation for the localization

* More translations

* Docs
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2024-03-17 22:22:53 -04:00
1 parent 403ed94e97
commit 7d9817994c
36 files changed
+789 -51

No files matched your search

@@ -1,4 +1,5 @@
import "DialogPalette.bs"
import "pkg:/source/utils/Locale.bs"
import "pkg:/source/utils/StringUtils.bs"
import "pkg:/source/utils/Types.bs"
@@ -9,6 +10,9 @@ function Init()
m.top.width = "920"
m.top.observeFieldScoped("buttonSelected", FuncName(Close))
scanLabel = m.top.findNode("scanLabel")
scanLabel.text = Tr(Locale.ScanTheQrCode)
end function
function OnNodeReady()
@@ -17,7 +21,7 @@ function OnNodeReady()
if isValidAddress
m.top.url = `${address}/invidious/login`
else
m.urlLabel.text = "No IP address found"
m.urlLabel.text = Tr(Locale.IpAddressNotAvailable)
end if
m.invidious.observeFieldScoped("authToken", FuncName(OnAuthTokenChange))