refactor(common): consistently name tooling related to closure-locale.ts (#45714)

Previously, some functions/targets related to the
generation/verification of the `closure-locale.ts` file included
`closure_locales` instead of `closure_locale` in their name, which was
inconsistent and confusing.
Rename all tooling to use `closure_locale` (which more closely matches
the generated file's name).

PR Close #45714
This commit is contained in:
George Kalpakas
2022-04-26 16:58:00 +03:00
committed by Dylan Hunn
parent 29039fcdbc
commit 0e5e4e298a
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -1,5 +1,5 @@
load("@build_bazel_rules_nodejs//:index.bzl", "generated_file_test")
load("//packages/common/locales:index.bzl", "LOCALES", "generate_all_locale_files", "generate_closure_locales_file")
load("//packages/common/locales:index.bzl", "LOCALES", "generate_all_locale_files", "generate_closure_locale_file")
load("//tools:defaults.bzl", "pkg_npm", "ts_library")
package(default_visibility = ["//visibility:public"])
@@ -8,15 +8,15 @@ package(default_visibility = ["//visibility:public"])
# the `closure-locale.ts` file is checked-in for Google3, we add a `generated_file_test` to
# ensure the checked-in file is up-to-date. To disambiguate from the test, we use a more
# precise target name here.
generate_closure_locales_file(
name = "closure_locales_file_generated",
output_file = "closure_locales_generated.ts",
generate_closure_locale_file(
name = "closure_locale_file_generated",
output_file = "closure_locale_generated.ts",
)
generated_file_test(
name = "closure_locale_file",
src = "closure-locale.ts",
generated = ":closure_locales_file_generated",
generated = ":closure_locale_file_generated",
)
generate_all_locale_files(
+1 -1
View File
@@ -36,7 +36,7 @@ def generate_base_locale_file(name, output_file, **kwargs):
**kwargs
)
def generate_closure_locales_file(name, output_file, **kwargs):
def generate_closure_locale_file(name, output_file, **kwargs):
_run_tool_with_single_output(
name = name,
output_file = output_file,