From 966cbd4cf8d795b1706ff400f604c6002d7e81f9 Mon Sep 17 00:00:00 2001 From: Di Peng Date: Fri, 29 Jul 2011 14:22:37 -0700 Subject: feat(i18n): collect and convert locale info from closure - add i18n/closure directory with closure i18n files and update-closure.sh script to update them - generate.sh script runs node.js scripts that extract localization rules from the closure library, transform them to a more suitable format and dumps them into i18n/locale directory as angular's $locale services - update Rakefile to copy i18n files to build/ and pkg/ dirs - copy i18n stuff during rake build - e2e tests for several locales --- Rakefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 3641863c..1f0f7d25 100644 --- a/Rakefile +++ b/Rakefile @@ -217,6 +217,8 @@ task :compile => [:init, :compile_scenario, :compile_jstd_scenario_adapter, :gen --language_in ECMASCRIPT5_STRICT \ --js #{path_to('angular.js')} \ --js_output_file #{path_to('angular.min.js')}) + + FileUtils.cp_r 'i18n/locale', path_to('i18n') end @@ -252,6 +254,7 @@ task :package => [:clean, :compile, :docs] do FileUtils.cp(src, pkg_dir + '/' + dest) end + FileUtils.cp_r path_to('i18n'), "#{pkg_dir}/i18n-#{NG_VERSION.full}" FileUtils.cp_r path_to('docs'), "#{pkg_dir}/docs-#{NG_VERSION.full}" File.open("#{pkg_dir}/docs-#{NG_VERSION.full}/index.html", File::RDWR) do |f| -- cgit v1.2.3