Skip to content

add the bower configuration #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix the issue #47
  • Loading branch information
Haixing-Hu committed Mar 8, 2015
commit 9c5cc4ac29b3869727ef5314330d70915d2a749e
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-localize",
"version": "0.1.0",
"version": "0.1.1",
"license": "MIT",
"description": "A jQuery plugin that makes it easy to i18n your static web site.",
"keywords": [
Expand Down
3 changes: 3 additions & 0 deletions dist/jquery.localize.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ http://keith-wood.name/localisation.html
return loadLanguage(pkg, lang, level + 1);
};
errorFunc = function() {
if (level < 3) {
loadLanguage(pkg, lang, level + 1);
}
if (options.fallback && options.fallback !== lang) {
return loadLanguage(pkg, options.fallback);
}
Expand Down
6 changes: 3 additions & 3 deletions dist/jquery.localize.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion localize.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jquery.localize",
"title": "Localize",
"description": "A jQuery plugin that makes it easy to i18n your static web site.",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/coderifous/jquery-localize",
"author": {
"name": "coderifous",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-localize",
"version": "0.0.0-ignored",
"version": "0.1.1",
"engines": {
"node": ">= 0.8.0"
},
Expand Down
3 changes: 3 additions & 0 deletions src/jquery.localize.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ do ($ = jQuery) ->
notifyDelegateLanguageLoaded(intermediateLangData)
loadLanguage(pkg, lang, level + 1)
errorFunc = ->
# by Haixing Hu: load the next level even if the higher level failed.
if level < 3
loadLanguage(pkg, lang, level + 1)
if options.fallback && options.fallback != lang
loadLanguage(pkg, options.fallback)
ajaxOptions =
Expand Down