Skip to content

Commit

Permalink
Substitute Info.plist's DEVELOPMENT_LANGUAGE variable with en
Browse files Browse the repository at this point in the history
This supports compiling Info.plist out of the box coming from Xcode.
  • Loading branch information
thii committed Jun 12, 2019
1 parent c54cec2 commit 251a36a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apple/internal/resource_actions/plist.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,12 @@ def merge_root_infoplists(
# target name in the BUILD file.
substitutions["TARGET_NAME"] = product_name

# The generated Info.plists from Xcode's project templates use
# DEVELOPMENT_LANGUAGE as the default variable substitution for
# CFBundleDevelopmentRegion. We substitute this to `en` to support
# Info.plists out of the box coming from Xcode.
substitutions["DEVELOPMENT_LANGUAGE"] = "en"

if include_executable_name:
substitutions["EXECUTABLE_NAME"] = product_name
forced_plists.append(struct(CFBundleExecutable = product_name))
Expand Down

0 comments on commit 251a36a

Please sign in to comment.