Skip to content

Commit d4c7c84

Browse files
author
Charlie Kassel
committed
remove hyphen from umd name
1 parent f474e48 commit d4c7c84

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,27 @@ const app = new Vue({
6060
}
6161
})
6262
</script>
63+
64+
<!-- French language example -->
65+
<div id="app">
66+
<vuejs-datepicker :language="fr"></vuejs-datepicker>
67+
</div>
68+
<script src="https://unpkg.com/vue"></script>
69+
<script src="https://unpkg.com/vuejs-datepicker"></script>
70+
<script src="https://unpkg.com/vuejs-datepicker/dist/locale/translations/fr.js"></script>
71+
<script>
72+
const app = new Vue({
73+
el: '#app',
74+
data() {
75+
return {
76+
fr: vdp_translation_fr.js
77+
}
78+
},
79+
components: {
80+
vuejsDatepicker
81+
}
82+
})
83+
</script>
6384
```
6485

6586
## Usage

scripts/build-locale.js

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const config = files.map(file => {
1111
output: {
1212
file: path.join(__dirname, '..', 'dist', 'locale', 'translations', file),
1313
format: 'umd',
14-
name: `locale-${file}`
14+
name: `vdp_translation_${file}`
1515
},
1616
plugins: [
1717
commonjs(),
@@ -22,22 +22,3 @@ const config = files.map(file => {
2222
})
2323

2424
export default config
25-
26-
// async function buildAll () {
27-
// console.log(chalk.cyan('Building translation importer.'))
28-
// const bundle = await rollup({
29-
// input: path.join(__dirname, '..', 'src', 'locale', 'index.js'),
30-
// plugins: [
31-
// buble(),
32-
// uglify()
33-
// ]
34-
// })
35-
// await bundle.write({
36-
// file: path.join(__dirname, '..', 'dist', 'locale', 'index.js'),
37-
// format: 'es'
38-
// })
39-
// await console.log(chalk.green('All translations built.'))
40-
// }
41-
42-
// build()
43-
// buildAll()

0 commit comments

Comments
 (0)