We have our /lib/intl directory on gitignore and run the following script on our build server:
flutter pub run intl_utils:localizely_download --api-token $INTL_TOKEN
flutter pub run intl_utils:generate
If the arb directory doesn't exist for the localization files then the tool errors with:
ERROR: Failed to download ARB files from Localizely.
FileSystemException: Cannot create file, path = '/Users/builder/clone/lib/l10n/intl_pt.arb' (OS Error: No such file or directory, errno = 2)
pub finished with exit code 2
A check to see if the directory exists and creating it if not should fix this.
Otherwise for anyone else doing this on their build server, adding the command mkdir lib/l10n (or whatever your arb directory is) before downloading will fix this.
We have our
/lib/intl
directory on gitignore and run the following script on our build server:If the arb directory doesn't exist for the localization files then the tool errors with:
A check to see if the directory exists and creating it if not should fix this.
Otherwise for anyone else doing this on their build server, adding the command
mkdir lib/l10n
(or whatever your arb directory is) before downloading will fix this.