🌐 Adds Czech and Slovenian, removes Polish
This commit is contained in:
parent
d385401552
commit
55fb99bb4c
|
@ -2,6 +2,10 @@
|
|||
|
||||
A Vue.js powered, progressive web voting application for upcoming European elections. EUROMAT is hosted on _Netlify_ and uses the **Netlify CMS** for easier collaboration.
|
||||
|
||||
## Calculation Model
|
||||
|
||||
The calculation model for voting has been defined by the German Federal Agency for Civic Education _(Bundeszentrale für politische Bildung)_. A good overview can be found in this PDF: [`resources/Rechenmodell des Wahl-O-Mat.pdf`](resources/Rechenmodell des Wahl-O-Mat.pdf).
|
||||
|
||||
## ⌨️ Development
|
||||
|
||||
This is a Vue.js progressive web application, developed with [`@vue/cli`](https://github.com/vuejs/vue-cli).
|
||||
|
|
|
@ -28,10 +28,12 @@ collections:
|
|||
value: de
|
||||
- label: Français
|
||||
value: fr
|
||||
- label: Polski
|
||||
value: pl
|
||||
- label: Dansk
|
||||
value: dk
|
||||
- label: Slovenščina
|
||||
value: si
|
||||
- label: Čeština
|
||||
value: cz
|
||||
- label: '[Meta] Page URL'
|
||||
name: url
|
||||
widget: string
|
||||
|
@ -77,10 +79,12 @@ collections:
|
|||
value: de
|
||||
- label: Français
|
||||
value: fr
|
||||
- label: Polski
|
||||
value: pl
|
||||
- label: Dansk
|
||||
value: dk
|
||||
- label: Slovenščina
|
||||
value: si
|
||||
- label: Čeština
|
||||
value: cz
|
||||
- label: '[Meta] Page URL'
|
||||
name: url
|
||||
widget: string
|
||||
|
@ -123,10 +127,12 @@ collections:
|
|||
value: de
|
||||
- label: Français
|
||||
value: fr
|
||||
- label: Polski
|
||||
value: pl
|
||||
- label: Dansk
|
||||
value: dk
|
||||
- label: Slovenščina
|
||||
value: si
|
||||
- label: Čeština
|
||||
value: cz
|
||||
- label: '[Meta] Page URL'
|
||||
name: url
|
||||
widget: string
|
||||
|
@ -175,10 +181,12 @@ collections:
|
|||
value: de
|
||||
- label: Français
|
||||
value: fr
|
||||
- label: Polski
|
||||
value: pl
|
||||
- label: Dansk
|
||||
value: dk
|
||||
- label: Slovenščina
|
||||
value: si
|
||||
- label: Čeština
|
||||
value: cz
|
||||
- label: '[Meta] Site Name'
|
||||
name: title
|
||||
widget: string
|
||||
|
@ -213,10 +221,12 @@ collections:
|
|||
value: de
|
||||
- label: Français
|
||||
value: fr
|
||||
- label: Polski
|
||||
value: pl
|
||||
- label: Dansk
|
||||
value: dk
|
||||
- label: Slovenščina
|
||||
value: si
|
||||
- label: Čeština
|
||||
value: cz
|
||||
- label: '[Meta] Page URL'
|
||||
name: url
|
||||
widget: string
|
||||
|
@ -265,10 +275,12 @@ collections:
|
|||
value: de
|
||||
- label: Français
|
||||
value: fr
|
||||
- label: Polski
|
||||
value: pl
|
||||
- label: Dansk
|
||||
value: dk
|
||||
- label: Slovenščina
|
||||
value: si
|
||||
- label: Čeština
|
||||
value: cz
|
||||
- label: '[Meta] Page URL'
|
||||
name: url
|
||||
widget: string
|
||||
|
@ -308,10 +320,12 @@ collections:
|
|||
value: de
|
||||
- label: Français
|
||||
value: fr
|
||||
- label: Polski
|
||||
value: pl
|
||||
- label: Dansk
|
||||
value: dk
|
||||
- label: Slovenščina
|
||||
value: si
|
||||
- label: Čeština
|
||||
value: cz
|
||||
- label: '[Meta] Page URL'
|
||||
name: url
|
||||
widget: string
|
||||
|
@ -355,10 +369,12 @@ collections:
|
|||
value: de
|
||||
- label: Français
|
||||
value: fr
|
||||
- label: Polski
|
||||
value: pl
|
||||
- label: Dansk
|
||||
value: dk
|
||||
- label: Slovenščina
|
||||
value: si
|
||||
- label: Čeština
|
||||
value: cz
|
||||
- label: '[Meta] Page URL'
|
||||
name: url
|
||||
widget: string
|
||||
|
@ -395,10 +411,12 @@ collections:
|
|||
value: de
|
||||
- label: Français
|
||||
value: fr
|
||||
- label: Polski
|
||||
value: pl
|
||||
- label: Dansk
|
||||
value: dk
|
||||
- label: Slovenščina
|
||||
value: si
|
||||
- label: Čeština
|
||||
value: cz
|
||||
- label: '[Meta] Page URL'
|
||||
name: url
|
||||
widget: string
|
||||
|
@ -442,10 +460,12 @@ collections:
|
|||
value: de
|
||||
- label: Français
|
||||
value: fr
|
||||
- label: Polski
|
||||
value: pl
|
||||
- label: Dansk
|
||||
value: dk
|
||||
- label: Slovenščina
|
||||
value: si
|
||||
- label: Čeština
|
||||
value: cz
|
||||
- label: '[Meta] Page URL'
|
||||
name: url
|
||||
widget: string
|
||||
|
@ -571,10 +591,12 @@ collections:
|
|||
value: de
|
||||
- label: Français
|
||||
value: fr
|
||||
- label: Polski
|
||||
value: pl
|
||||
- label: Dansk
|
||||
value: dk
|
||||
- label: Slovenščina
|
||||
value: si
|
||||
- label: Čeština
|
||||
value: cz
|
||||
- label: '[Meta] Site Name'
|
||||
name: title
|
||||
widget: string
|
||||
|
@ -607,10 +629,12 @@ collections:
|
|||
value: de
|
||||
- label: Français
|
||||
value: fr
|
||||
- label: Polski
|
||||
value: pl
|
||||
- label: Dansk
|
||||
value: dk
|
||||
- label: Slovenščina
|
||||
value: si
|
||||
- label: Čeština
|
||||
value: cz
|
||||
- label: '[Meta] Site Name'
|
||||
name: title
|
||||
widget: string
|
||||
|
|
File diff suppressed because one or more lines are too long
5
src/assets/svg/flag-cz.svg
Normal file
5
src/assets/svg/flag-cz.svg
Normal file
|
@ -0,0 +1,5 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600">
|
||||
<rect width="900" height="600" fill="#d7141a"/>
|
||||
<rect width="900" height="300" fill="#fff"/>
|
||||
<path d="M 450,300 0,0 V 600 z" fill="#11457e"/>
|
||||
</svg>
|
After Width: | Height: | Size: 212 B |
22
src/assets/svg/flag-si.svg
Normal file
22
src/assets/svg/flag-si.svg
Normal file
|
@ -0,0 +1,22 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 12 6">
|
||||
<title>Flag of Slovenia</title>
|
||||
<rect width="12" fill="#ed1c24" height="6"/>
|
||||
<rect width="12" fill="#005da4" height="4"/>
|
||||
<rect width="12" fill="#fff" height="2"/>
|
||||
<g transform="translate(2.2238 1) scale(.12937)">
|
||||
<svg width="12" viewBox="-120 -190.223125 240 309.188274" height="15.459">
|
||||
<path d="m110.26-19.478l9.74-143.75a280.22 280.22 0 0 0 -240 0l9.74 143.75a155.61 155.61 0 0 0 110.26 138.45 155.61 155.61 0 0 0 110.26 -138.45" fill="#005da4"/>
|
||||
<path d="m-90 0a138.29 138.29 0 0 0 90 100.77 138.29 138.29 0 0 0 90 -100.77l-45-60-18 24-27-54-27 54-18-24-45 60" fill="#fff"/>
|
||||
<g id="wave" fill="#005da4" transform="scale(5) translate(0 5.1962)">
|
||||
<path d="m-17.196-2.1962a6 6 0 0 0 8.1962 2.1962 6 6 0 0 1 6 0 6 6 0 0 0 6 0 6 6 0 0 1 6 0 6 6 0 0 0 8.1962 -2.1962v1.732a6 6 0 0 1 -8.1962 2.1962 6 6 0 0 0 -6 0 6 6 0 0 1 -6 0 6 6 0 0 0 -6 0 6 6 0 0 1 -8.1962 -2.1962z"/>
|
||||
</g>
|
||||
<use xlink:href="#wave" transform="translate(0 17.321)"/>
|
||||
<g id="s" transform="translate(0,-120) scale(2.25)">
|
||||
<path stroke-width=".2" d="m0-5l1 3.2679 3.3301-0.7679-2.3301 2.5 2.3301 2.5-3.3301-0.7679-1 3.2679-1-3.2679-3.3301 0.7679 2.3301-2.5-2.3301-2.5 3.3301 0.7679z" fill="#fd0"/>
|
||||
</g>
|
||||
<use xlink:href="#s" transform="translate(-33.75,-45)"/>
|
||||
<use xlink:href="#s" transform="translate(33.75,-45)"/>
|
||||
<path d="m-111.58-167.05l9.96 146.99a146.95 146.95 0 0 0 101.62 129.95 146.95 146.95 0 0 0 101.62 -129.95l9.96-146.99a280.22 280.22 0 0 0 8.42 3.82l-9.74 143.75a155.61 155.61 0 0 1 -110.26 138.45 155.61 155.61 0 0 1 -110.26 -138.45l-9.74-143.75a280.22 280.22 0 0 0 8.42 -3.82" fill="#ed1c24"/>
|
||||
</svg>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.7 KiB |
|
@ -77,6 +77,8 @@
|
|||
this.languageMenuSelected = false
|
||||
},
|
||||
changeLanguage (locale) {
|
||||
// console.log(this.$route)
|
||||
// this.$router.replace(`/${locale}`)
|
||||
setCurrentLocale(locale)
|
||||
this.hideLanguageSelection()
|
||||
}
|
||||
|
|
|
@ -3,14 +3,17 @@ const LOCALE_ENGLISH = 'en'
|
|||
const LOCALE_FRENCH = 'fr'
|
||||
const LOCALE_POLISH = 'pl'
|
||||
const LOCALE_DANISH = 'dk'
|
||||
const LOCALE_SLOVENIAN = 'si'
|
||||
const LOCALE_CZECH = 'cz'
|
||||
const DEFAULT_LOCALE = LOCALE_ENGLISH
|
||||
|
||||
const SUPPORTED_LOCALES = [
|
||||
[LOCALE_ENGLISH, 'English'],
|
||||
[LOCALE_GERMAN, 'Deutsch'],
|
||||
[LOCALE_FRENCH, 'Français'],
|
||||
[LOCALE_POLISH, 'Polski'],
|
||||
[LOCALE_DANISH, 'Dansk']
|
||||
[LOCALE_DANISH, 'Dansk'],
|
||||
[LOCALE_SLOVENIAN, 'Slovenščina'],
|
||||
[LOCALE_CZECH, 'Čeština']
|
||||
]
|
||||
|
||||
module.exports = {
|
||||
|
|
Loading…
Reference in a new issue