Skip to content

Commit

Permalink
Bump to 0.1.0 and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
beck committed Mar 11, 2014
1 parent 03650d5 commit 18cb847
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 29 deletions.
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014 Doug Beck
Copyright (c) 2014 Douglas Beck

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
66 changes: 39 additions & 27 deletions README.md
Expand Up @@ -8,39 +8,45 @@
Say you have:

```
app
├── locale
│ ├── en_GB
│ │ └── LC_MESSAGES
│ │ └── messages.po
│ └── fr
│ └── LC_MESSAGES
│ └── messages.po
└── static
└── data.json // content: ["_('Hello World')"]
app/
├── Gruntfile.js
└── app
├── locale
│ ├── fr
│ │ └── LC_MESSAGES
│ │ └── messages.po
│ └── pt_BR
│ └── LC_MESSAGES
│ └── messages.po
└── static
└── data.json // content: ["_('Hello World')"]
```

And you need to translate `data.json`.
Static internationalization would like like:

```
app
├── i18n
│ ├── en_GB
│ │ └── static
│ │ └── data.json // content: ["Hello World"]
│ └── fr
│ └── static
│ └── data.json // content: ["Bonjour tout le monde"]
├── locale
│ ├── en_GB
│ │ └── LC_MESSAGES
│ │ └── messages.po
│ └── fr
│ └── LC_MESSAGES
│ └── messages.po
└── static
└── data.json
app/
├── Gruntfile.js
└── app
├── i18n
│ ├── fr
│ │ └── static
│ │ └── data.json // content: ["Bonjour tout le monde"]
│ ├── pt_BR
│ │ └── static
│ │ └── data.json // content: ["Olá mundo"]
│ └── static
│ └── data.json // not translated: ["Hello World"]
├── locale
│ ├── fr
│ │ └── LC_MESSAGES
│ │ └── messages.po
│ └── pt_BR
│ └── LC_MESSAGES
│ └── messages.po
└── static
└── data.json
```


Expand Down Expand Up @@ -98,5 +104,11 @@ Sets [_.templateSettings.interpolate](http://lodash.com/docs#templateSettings_in

Run `grunt && open coverage.html`

## Release History

* 0.1.0 - render non-language defaults to destination
* 0.0.2 - add coverage reporting
* 0.0.1 - initial release

## License
Copyright (c) 2014 Douglas Beck. Licensed under the MIT license.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "grunt-static-i18n",
"version": "0.0.2",
"version": "0.1.0",
"description": "Grunt plugin to translate static assets.",
"homepage": "https://github.com/beck/grunt-static-i18n",
"repository": "https://github.com/beck/grunt-static-i18n",
Expand Down

0 comments on commit 18cb847

Please sign in to comment.