dayspan-vuetify
Advanced tools
Comparing version 0.3.6 to 0.4.0
{ | ||
"name": "dayspan-vuetify", | ||
"version": "0.3.6", | ||
"version": "0.4.0", | ||
"description": "A collection of components for Schedules and Calendars in DaySpan using Vuetify", | ||
@@ -28,3 +28,3 @@ "author": "Philip Diffenderfer <pdiffenderfer@gmail.com>", | ||
"vue": "^2.3.3", | ||
"vuetify": "^1.1.1" | ||
"vuetify": "^1.3.9" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
@@ -128,3 +128,3 @@ # dayspan-vuetify | ||
This library supports multiple locales but comes only with [en-us/en](https://github.com/ClickerMonkey/dayspan-vuetify/blob/master/src/locales/en.js). The following code shows you how to add locales, changing the current locale, and updating a given locale: | ||
This library supports multiple locales but the build only comes with [en-us/en](https://github.com/ClickerMonkey/dayspan-vuetify/blob/master/src/locales/en.js). The following code shows you how to add locales, changing the current locale, and updating a given locale: | ||
@@ -155,2 +155,29 @@ ```javascript | ||
#### French Locale | ||
```javascript | ||
import fr from 'dayspan-vuetify/src/locales/fr'; | ||
import Vue from 'vue'; | ||
// dayspan-vuetify should already be loaded at this point | ||
Vue.$dayspan.addLocales(['fr', 'fr-CA', 'fr-BE', 'fr-CH', 'fr-FR', 'fr-LU', 'fr-MC'], fr); | ||
``` | ||
#### Dutch Locale | ||
```javascript | ||
import nl from 'dayspan-vuetify/src/locales/nl'; | ||
import Vue from 'vue'; | ||
// dayspan-vuetify should already be loaded at this point | ||
Vue.$dayspan.addLocales(['nl', 'nl-NL', 'nl-BE'], nl); | ||
``` | ||
#### Catalan Locale | ||
```javascript | ||
import ca from 'dayspan-vuetify/src/locales/ca'; | ||
import Vue from 'vue'; | ||
// dayspan-vuetify should already be loaded at this point | ||
Vue.$dayspan.addLocales(['ca', 'ca-ES'], ca); | ||
``` | ||
## Build Setup | ||
@@ -157,0 +184,0 @@ |
@@ -136,5 +136,15 @@ | ||
{ | ||
normalizeLocaleName(name) | ||
{ | ||
return name.toLowerCase(); | ||
}, | ||
getLocale(name) | ||
{ | ||
return this.locales[this.normalizeLocaleName(name)]; | ||
}, | ||
setLocale(name, strict) | ||
{ | ||
const locale = this.locales[name]; | ||
const locale = this.getLocale(name); | ||
@@ -155,8 +165,13 @@ if (!locale && strict) | ||
{ | ||
this.locales[name] = locale; | ||
this.locales[this.normalizeLocaleName(name)] = locale; | ||
}, | ||
addLocales(names, locale) | ||
{ | ||
names.forEach(n => this.addLocale(n, locale)); | ||
}, | ||
updateLocale(name, update, strict = true) | ||
{ | ||
const locale = this.locales[name]; | ||
const locale = this.getLocale(name); | ||
@@ -163,0 +178,0 @@ if (!locale) |
@@ -255,2 +255,3 @@ | ||
labels: { | ||
moreActions: LOCALE_ENTRY, | ||
cancel: LOCALE_ENTRY, | ||
@@ -257,0 +258,0 @@ save: LOCALE_ENTRY, |
@@ -12,4 +12,8 @@ import Vue from 'vue' | ||
import en from './locales/en' | ||
import ca from './locales/ca' | ||
import nl from './locales/nl' | ||
import 'moment/lang/fr' | ||
import 'moment/lang/ca' | ||
import 'moment/lang/nl' | ||
import * as moment from 'moment' | ||
@@ -26,3 +30,3 @@ moment.lang('en') | ||
{ | ||
locales: { en, fr } | ||
locales: { en, fr, nl, ca } | ||
}, | ||
@@ -29,0 +33,0 @@ methods: |
@@ -188,2 +188,3 @@ | ||
labels: { | ||
moreActions: 'More actions...', | ||
cancel: 'Cancel event changes', | ||
@@ -394,2 +395,2 @@ save: 'Save', | ||
} | ||
} | ||
} |
export default { | ||
promptLabels: { | ||
actionRemove: 'Êtes vous sûr de vouloir supprimer cet evènement ?', | ||
actionRemove: 'Êtes vous sûr de vouloir supprimer cet événement ?', | ||
actionExclude: "Êtes-vous sûr de vouloir supprimer cette occurrence d'événement ?", | ||
actionCancel: 'Êtes-vous sûr de vouloir annuler cet evènement ?', | ||
actionCancel: 'Êtes-vous sûr de vouloir annuler cet événement ?', | ||
actionUncancel: "Êtes-vous sûr de vouloir annuler l'annulation de cette événement", | ||
@@ -76,7 +76,7 @@ actionSetStart: 'Êtes-vous sûr de vouloir définir cette occurrence comme la première ?', | ||
{ label: 'Année' }, | ||
{ label: 'Planning' }, | ||
{ label: 'Planning' }, | ||
{ label: '4 jours' } | ||
], | ||
formats: { | ||
today: 'dddd, MMMM D', | ||
today: 'dddd D MMMM', | ||
xs: 'MMM' | ||
@@ -101,3 +101,3 @@ }, | ||
secondLine: 'MMM Do', | ||
start: 'dddd, MMMM D', | ||
start: 'dddd D MMMM', | ||
time: 'h:mm a' | ||
@@ -131,3 +131,3 @@ }, | ||
formats: { | ||
start: 'dddd, MMMM D', | ||
start: 'dddd D MMMM', | ||
time: 'h:mm a' | ||
@@ -155,3 +155,3 @@ }, | ||
formats: { | ||
start: 'dddd, MMMM D', | ||
start: 'dddd D MMMM', | ||
time: 'h:mm a' | ||
@@ -192,2 +192,3 @@ }, | ||
labels: { | ||
moreActions: 'Autres actions', | ||
cancel: "Annuler les changements d'événement", | ||
@@ -200,3 +201,3 @@ save: 'Sauvegarder', | ||
edit: "Modifier l'événement", | ||
add: 'Ajouter un évènement', | ||
add: 'Ajouter un événement', | ||
location: 'Ajouter un emplacement', | ||
@@ -206,6 +207,6 @@ description: 'Ajouter une description', | ||
tabs: { | ||
details: "Détails de l'évènement", | ||
details: "Détails de l'événement", | ||
forecast: 'Prévoir', | ||
removed: 'Enlevé', | ||
added: 'Ajoutée', | ||
added: 'Ajouté', | ||
cancelled: 'Annulé' | ||
@@ -235,4 +236,4 @@ } | ||
labels: { | ||
prefix: 'Afficher les préisions précédent et suivant', | ||
suffix: "événements se produisent au cours d'une année" | ||
prefix: 'Afficher les', | ||
suffix: "prochaines occurences de l'événement pour les années à venir" | ||
} | ||
@@ -261,3 +262,3 @@ }, | ||
options: [ | ||
{ text: "n'importe quel jour de la semaine" }, | ||
{ text: "N'importe quel jour de la semaine" }, | ||
{ text: 'Les jours suivants de la semaine...' }, | ||
@@ -285,3 +286,3 @@ { text: 'Chaque _ semaine à partir du _' }, | ||
'Novembre', | ||
'Decembre' | ||
'Décembre' | ||
], | ||
@@ -302,3 +303,3 @@ options: [ | ||
{ text: 'Les semaines suivantes...' }, | ||
{ text: 'chaque _ semaines à partir du _' } | ||
{ text: 'Chaque _ semaines à partir du _' } | ||
], | ||
@@ -324,5 +325,5 @@ types: [ | ||
options: [ | ||
{ text: 'Toutes les années' }, | ||
{ text: 'Tous les ans' }, | ||
{ text: 'Les années suivantes...' }, | ||
{ text: 'chaque _ années à partir de _' } | ||
{ text: 'Chaque _ années à partir de _' } | ||
] | ||
@@ -333,3 +334,3 @@ }, | ||
labels: { | ||
startless: 'Débuts des temps', | ||
startless: 'Début des temps', | ||
endless: 'Fin des temps' | ||
@@ -406,2 +407,2 @@ }, | ||
} | ||
} | ||
} |
import en from './en' | ||
import nl from './nl' | ||
@@ -9,2 +10,2 @@ export default { | ||
export const defaultLocale = 'en' | ||
export const defaultLocale = 'en' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1880326
95
4256
198
Updatedvuetify@^1.3.9