From 0386fd4bb71037b9dd64b5d37900418d4efb9420 Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Tue, 18 Dec 2018 11:11:56 +0100 Subject: [PATCH] added some optimized locale flags and created a LanguageSwitch component --- README.md | 4 +++ components/LanguageSwitch.vue | 47 ++++++++++++++++++++++++++++++++++ layouts/default.vue | 43 ++++++++++--------------------- static/img/locale-flags/de.svg | 1 + static/img/locale-flags/en.svg | 1 + static/img/locale-flags/fr.svg | 1 + static/img/locale-flags/nl.svg | 1 + 7 files changed, 69 insertions(+), 29 deletions(-) create mode 100644 components/LanguageSwitch.vue create mode 100644 static/img/locale-flags/de.svg create mode 100644 static/img/locale-flags/en.svg create mode 100644 static/img/locale-flags/fr.svg create mode 100644 static/img/locale-flags/nl.svg diff --git a/README.md b/README.md index c48e4da65..acbf93148 100644 --- a/README.md +++ b/README.md @@ -39,3 +39,7 @@ All reusable Components (for example avatar) should be done inside the styleguid ``` bash $ yarn styleguide ``` + +## Attributions + +
Locale Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY
diff --git a/components/LanguageSwitch.vue b/components/LanguageSwitch.vue new file mode 100644 index 000000000..9906c25d5 --- /dev/null +++ b/components/LanguageSwitch.vue @@ -0,0 +1,47 @@ + + + diff --git a/layouts/default.vue b/layouts/default.vue index 8f2195552..752c4c3d9 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -8,22 +8,7 @@ > - - - Deutsch - - - English - - +