feat: add runtime i18n API with manifest translations
This commit is contained in:
@@ -33,6 +33,7 @@ void main() {
|
||||
await expectLater(game.callLua('host.ready'), throwsA(isA<StateError>()));
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
class _FakeScriptEngine implements ScriptEngine {
|
||||
@@ -66,6 +67,12 @@ class _FakeScriptEngine implements ScriptEngine {
|
||||
bool smokeTest(Map<String, Object?> context) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
@override
|
||||
void setTranslations({
|
||||
required String locale,
|
||||
required Map<String, Map<String, String>> translations,
|
||||
}) {}
|
||||
}
|
||||
|
||||
class _FakePackageRepository implements GamePackageRepository {
|
||||
|
||||
Reference in New Issue
Block a user