[gen-l10n] Fix forwarding of output-dir in l10n.yaml file (#71128)

This commit is contained in:
Shi-Hao Hong
2020-12-04 08:18:04 +08:00
committed by GitHub
parent bb29c88ae7
commit 95e444ce9a
2 changed files with 12 additions and 4 deletions

View File

@@ -35,6 +35,7 @@ void main() {
deferredLoading: true,
outputClass: 'Foo',
outputLocalizationsFile: Uri.file('bar'),
outputDirectory: Uri.directory(fileSystem.path.join('lib', 'l10n')),
preferredSupportedLocales: <String>['en_US'],
templateArbFile: Uri.file('example.arb'),
untranslatedMessagesFile: Uri.file('untranslated'),
@@ -50,11 +51,10 @@ void main() {
projectDir: fileSystem.currentDirectory,
dependenciesDir: fileSystem.currentDirectory,
);
verify(
mockLocalizationsGenerator.initialize(
inputPathString: 'arb',
outputPathString: null,
outputPathString: fileSystem.path.join('lib', 'l10n/'),
templateArbFileName: 'example.arb',
outputFileString: 'bar',
classNameString: 'Foo',