Skip to content

Commit

Permalink
Merge pull request #22 from Brightspace/remove-import
Browse files Browse the repository at this point in the history
removing committed Intl.js and HTML import as it's being moved to a s…
  • Loading branch information
dlockhart committed Dec 1, 2017
2 parents 5c1f2ae + 286a23e commit 8e25068
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 125 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
coverage/
dist
node_modules/
*.log
package-lock.json
16 changes: 3 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,20 @@ Why not just use the standard [ECMAScript Internationalization API (ECMA-402)](h

### Installation

Install from [Bower]([bower-url]):

```shell
bower install d2l-intl
```

Or install from [NPM]([npm-url]):
Install from [NPM]([npm-url]):

```shell
npm install d2l-intl
```

Or include it as a Polymer https://www.polymer-project.org/ HTML import:

```html
<link rel="import" href="../d2l-intl/d2l-intl.html">
```

Or include it in your application as UMD/CommonJs from the Brightspace CDN:

```html
<script src="https://s.brightspace.com/lib/d2l-intl/{version}/Intl.js"></script>
```

**Note about Polymer:** If you're using [Polymer](https://www.polymer-project.org) to write a web component or application, use [d2l-localize-behavior](https://github.com/BrightspaceUI/localize-behavior) instead.

### Specifying Locales

Each of the APIs have a `locales` argument, which must be a string language tag (or array of language tags) matching a locale supported by Brightspace. A list of all supported locales can be found in the `locale-data` directory.
Expand Down
1 change: 0 additions & 1 deletion d2l-intl.html

This file was deleted.

Loading

0 comments on commit 8e25068

Please sign in to comment.