Skip to content

Commit

Permalink
minor revision
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent STEFAN authored and Laurent STEFAN committed Apr 22, 2019
1 parent 5c9a8fd commit e86b219
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"scripts": {
"test": "mocha test/tests-node.js",
"test-browser": "node test/test-web.js &",
"halt-browser": "kill `ps -e -o pid,command | grep test-web.js | head -1 | grep -oP '\\d+'`",
"start": "nsrun test-browser",
"halt-browser": "pkill node",
"start": "npm run test-browser",
"stop": "npm run halt-browser",
"cover-local": "istanbul cover _mocha test/tests-node.js",
"cover": "istanbul cover _mocha test/tests-node.js --report lcovonly",
"coveralls": "npm run-script cover && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
"coveralls": "npm run cover && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -44,4 +44,4 @@
"mocha": "^5.0.0",
"opener": "^1.4.3"
}
}
}
10 changes: 5 additions & 5 deletions src/Localization.cls.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
* @classdesc Localization is a singleton. It helps to localise strings with jstrings files.
* @hideconstructor
* @author Laurent STEFAN <guitarneck@free.fr>
* @since Feb 9, 2018
* @version 2.0.0
* @copyright 2012-2018 Laurent STEFAN. All rights reserved.
* @since Apr 22, 2019
* @version 2.1.0
* @copyright 2012-2019 Laurent STEFAN. All rights reserved.
*
* @example
* Localization.language( ["fr","en"], "en" );
* console.log( "Hello !".localise() );
* // Salut !
*/

// Copyright (c) 2012-2018 Laurent STEFAN. All rights reserved.
// Copyright (c) 2012-2019 Laurent STEFAN. All rights reserved.

/* istanbul ignore next */
var inBrowser = typeof window !== 'undefined';
Expand Down Expand Up @@ -249,4 +249,4 @@ if (typeof define === "function" && define.amd) {
/* istanbul ignore next */
if ( inBrowser ) {
window.Localization = Localization;
}
}
2 changes: 1 addition & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ <h2 style="color:brown">Localization.cls.js unit testing</h2>
</script>
<!-- Run tests end -->
</body>
</html>
</html>

0 comments on commit e86b219

Please sign in to comment.