Skip to content

Commit

Permalink
chore(readme.md): update example
Browse files Browse the repository at this point in the history
  • Loading branch information
mineejo committed Nov 11, 2023
1 parent 933563a commit 26c7fbb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,26 @@ Extended colors are the result of merging specifications from HTML 4.01, CSS
2.0, SVG 1.0 and CSS3 User Interfaces (CSS3 UI).

```javascript
console.log(basicColors.grey);
/* {
* name: 'grey',
* hex: '#808080',
* rgb: [ 128, 128, 128 ],
* name: "grey",
* hex: "#808080",
* rgb: [128, 128, 128],
* localize: [Function: localize]
* }
*/
console.log(basicColors.grey);

console.log(colors.darkgrey);
/* {
* name: 'darkgrey',
* hex: '#a9a9a9',
* rgb: [ 169, 169, 169 ],
* name: "darkgrey",
* hex: "#a9a9a9",
* rgb: [169, 169, 169],
* localize: [Function: localize]
* }
*/
console.log(colors.darkgrey);

// dark grey
console.log(colors.darkgrey.localize("en-US"));
// dark grey
```

The localization function accepts a locale code: `be-BY`, `en-US`, `ru-RU`,
Expand Down

0 comments on commit 26c7fbb

Please sign in to comment.