Skip to content

Commit

Permalink
Edit description
Browse files Browse the repository at this point in the history
  • Loading branch information
AmilKey committed Apr 13, 2016
1 parent cbce2a0 commit 5d5030e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Ember-i18n-iso-countries
[![npm version](https://badge.fury.io/js/ember-countries.svg)](https://badge.fury.io/js/ember-i18n-iso-countries)
[![Ember Observer Score](http://emberobserver.com/badges/ember-countries.svg)](http://emberobserver.com/addons/ember-i18n-iso-countries)
Ember.js Addon Wrapper for the [i18n-iso-countries](https://github.com/michaelwittig/node-i18n-iso-countries).

i18n for ISO 3166-1 country codes. We support Alpha-2, Alpha-3 and Numeric codes from http://en.wikipedia.org/wiki/ISO_3166-1#Officially_assigned_code_elements

## Installation

* `ember install ember-i18n-iso-countries`

## Code to Country

### Get the name of a country by it's ISO 3166-1 Alpha-2, Alpha-3 or Numeric code
Expand Down Expand Up @@ -103,3 +109,19 @@ console.log(getAlpha3Codes()); // { 'AFG': 'AF', 'ALA': 'AX', [...], 'ZMB': 'ZM'
import { getNumericCodes } from 'ember-i18n-iso-countries';
console.log(getNumericCodes()); // { '4': 'AF', '8': 'AL', [...], '887': 'YE', '894': 'ZM' }
`````

## Running Tests

* `ember test`
* `ember test --server`


## Building

* `ember build`

For more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).

##Contributing

PRs welcome!
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ember-i18n-iso-countries",
"version": "0.0.0",
"description": "The default blueprint for ember-cli addons.",
"version": "1.0.0",
"description": "Ember i18n for ISO 3166-1 country codes, support Alpha-2, Alpha-3 and Numeric codes",
"directories": {
"doc": "doc",
"test": "tests"
Expand All @@ -11,7 +11,10 @@
"start": "ember server",
"test": "ember try:testall"
},
"repository": "",
"repository": "https://github.com/AmilKey/ember-i18n-iso-countries",
"authors": [
"Ivan Kobzar <[email protected]>"
],
"engines": {
"node": ">= 0.10.0"
},
Expand Down

0 comments on commit 5d5030e

Please sign in to comment.