Skip to content

Commit

Permalink
add linux/win locales
Browse files Browse the repository at this point in the history
  • Loading branch information
bridiver authored and NejcZdovc committed Oct 1, 2018
1 parent d6165b8 commit 6037502
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
19 changes: 16 additions & 3 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ group("browser_dependencies") {
":packed_resources",
"chromium_src:browser",
]

data_deps = [
":unpacked_resources",
]
}

group("brave") {
Expand All @@ -44,14 +48,23 @@ group("brave") {
]
}

group("framework_bundle_data") {
if (is_mac) {
public_deps = [
if (is_mac) {
group("framework_bundle_data") {
deps = [
"vendor/brave-extension:brave_extension_framework_bundle_data",
"components/brave_rewards/extension:framework_bundle_data",
]
}
}

group("unpacked_resources") {
if (!is_mac) {
deps = [
"//brave/components/brave_rewards/extension:locales",
]
}
}

group("brave_tests") {
testonly = true

Expand Down
15 changes: 14 additions & 1 deletion components/brave_rewards/extension/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,20 @@ grit("resources") {

if (is_mac) {
bundle_data("framework_bundle_data") {
sources = [ "brave_rewards/_locales" ]
sources = [
"brave_rewards/_locales/en/messages.json",
"brave_rewards/_locales",
]
outputs = [ "{{bundle_resources_dir}}/brave_rewards/{{source_file_part}}" ]
}
} else {
copy("locales") {
sources = [
"brave_rewards/_locales/en/messages.json",
]

outputs = [
"$root_out_dir/resources/brave_rewards/_locales/en/{{source_file_part}}",
]
}
}

0 comments on commit 6037502

Please sign in to comment.