Permalink
Browse files

included .gitignore

  • Loading branch information...
1 parent 2d4ac34 commit 2dcb396ca0d92aeb91f3f2ec596ed55a49e5a9ce Guillaume Denis committed Sep 13, 2012
Showing with 46 additions and 10 deletions.
  1. +3 −0 .gitignore
  2. +6 −1 README.md
  3. +15 −9 package.json
  4. +12 −0 test/constants.js
  5. +5 −0 test/fixtures/en.json
  6. +5 −0 test/fixtures/fr.json
View
@@ -0,0 +1,3 @@
+node_modules/vows/
+node_modules/.bin/vows
+.DS_Store
View
@@ -1,4 +1,9 @@
node-i18n
=========
-i18n for node with deep level objects
+i18n for node with deep level objects
+
+module developers
+=================
+
+type 'npm test' to launch vows
View
@@ -1,11 +1,17 @@
{
- "name": "node-i18n",
- "description": "i18n for node",
- "main": "./index",
- "author": "Larafale & Gui",
- "version": "0.0.1",
- "repository": {
- "type": "git",
- "url": "http://github.com/larafale/node-i18n.git"
- }
+ "name": "node-i18n",
+ "description": "i18n for node",
+ "main": "./index",
+ "author": "Larafale & Gui",
+ "version": "0.0.1",
+ "repository": {
+ "type": "git",
+ "url": "http://github.com/larafale/node-i18n.git"
+ },
+ "devDependencies": {
+ "vows": ">=0.6.4"
+ },
+ "scripts": {
+ "test": "vows test/*.js --spec"
+ }
}
View
@@ -0,0 +1,12 @@
+var vows = require('vows'),
+ assert = require('assert')
+
+vows.describe('Translate constants').addBatch({
+ 'when saying hello in French': {
+ topic: 'Bonjour',
+
+ 'we get Bonjour': function (topic) {
+ assert.equal(topic, 'Bonjour')
+ }
+ }
+}).export(module)
@@ -0,0 +1,5 @@
+{
+ "en": {
+ "hello": "Hello"
+ }
+}
@@ -0,0 +1,5 @@
+{
+ "fr": {
+ "hello": "Bonjour"
+ }
+}

0 comments on commit 2dcb396

Please sign in to comment.