Index: build.py |
diff --git a/build.py b/build.py |
index 335988bc4e9238db2c732cb324ee8a127b456025..b7233f995ecd402def1c085704c0f5e3236d608e 100644 |
--- a/build.py |
+++ b/build.py |
@@ -375,6 +375,21 @@ def updatepsl(base_dir, **kwargs): |
publicSuffixListUpdater.updatePSL(base_dir) |
+@argparse_command() |
+def checktranslations(base_dir, platform, **kwargs): |
+ """Perform translation checks. |
+ |
+ Checks translations files for structure and for overlong translations. |
+ """ |
+ from buildtools.packager import readMetadata |
+ metadata = readMetadata(base_dir, platform) |
+ |
+ locale_config = read_locale_config(base_dir, platform, metadata) |
+ |
+ import buildtools.localeTools as localetools |
+ localetools.check_translations(locale_config) |
+ |
+ |
def process_args(base_dir, *args): |
if build_available_subcommands(base_dir): |
MAIN_PARSER.set_defaults(base_dir=base_dir) |