Add a Fluent based translation system.

This commit is contained in:
Matthias Mailänder
2021-04-24 12:39:06 +02:00
committed by teinarss
parent f1a9a5180d
commit 1f01d0b6b1
8 changed files with 169 additions and 1 deletions

View File

@@ -31,5 +31,10 @@ namespace OpenRA.Mods.Common.Scripting.Global
var c = color.HasValue ? color.Value : Color.White;
luaLabel.GetColor = () => c;
}
public string Translate(string text)
{
return Context.World.Map.Translate(text);
}
}
}