Skip to content

Commit

Permalink
feat: Add localize (#187)
Browse files Browse the repository at this point in the history
* Move to BrightspaceUI/testing

* Add localize

* Fix lint

* Add localize to demo page
  • Loading branch information
bearfriend authored Aug 22, 2024
1 parent 99280dc commit 69ef932
Show file tree
Hide file tree
Showing 7 changed files with 850 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,13 @@
"overrides": [{
"files": "test/*",
"extends": "brightspace/testing-config"
},
{
"files": [
"helpers/getLocalizeResources.js"
],
"rules": {
"no-console": 0
}
}]
}
3 changes: 2 additions & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
import * as fileSize from '../lib/fileSize.js';
import * as list from '../lib/list.js';
import * as number from '../lib/number.js';
import * as localize from '../lib/localize.js';

window.intl = { ...common, ...dateTime, ...fileSize, ...list, ...number };
window.intl = { ...common, ...dateTime, ...fileSize, ...list, ...number, ...localize };
</script>
</head>
<body>
Expand Down
Loading

0 comments on commit 69ef932

Please sign in to comment.