From bfa489cd6ec6849ed6e4d4b783305230e02b004d Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Mon, 15 Sep 2014 13:45:13 +0800 Subject: [PATCH] ~ Update README about #213 [ci skip] --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index abd9a082..35b94c3c 100644 --- a/README.md +++ b/README.md @@ -359,6 +359,25 @@ The only requirement is that you need to set the `translations` attribute like f message: "Uma mensagem especial para vocĂȘ" } +## Known Issues + +### Missing translations in precompiled file(s) after adding any new locale file + +Due to the design of `sprockets`: +- `depend_on` only takes file paths, not directory paths +- registered `preprocessors` are only run when fingerprint of any asset file, including `.erb` files, is changed + +New locale files won't be picked up unless any existing locale file content is changed. +You can workaround it manually by running +```bash +$ rake assets:clobber +``` +to clear the asset cache. +Or just change something in existing locale file. + +Please see issue #213 for detail & related discussion. + + ## Maintainer - Nando Vieira -