diff --git a/components/SearchInput.vue b/components/SearchInput.vue
index 8b1d1e4..57c0f87 100644
--- a/components/SearchInput.vue
+++ b/components/SearchInput.vue
@@ -12,21 +12,36 @@
@typing="getAsyncData"
@select="(option) => (selected = option)"
>
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Résultats possibles: {{ data.length }}
+
+
+ -
+
+
+ {{ item.properties.name }}
+
+
+ {{ item.properties.context }}
+
+
+
+
+
@@ -120,9 +135,9 @@
>
- Vente à emporter
- Parking vélo
- Accès Internet
+ Vente à emporter
+ Parking vélo
+ Accès Internet
borne de recharge électrique sur parking
@@ -135,12 +150,6 @@
{{ xml.tags.opening_hours }}
-
@@ -176,11 +185,11 @@ export default {
}
this.isFetching = true
this.$axios
- .get(`https://api-adresse.data.gouv.fr/search?&type=poi&q=${name}`)
+ .get(`https://demo.addok.xyz/search?&type=poi&q=${name}`)
.then(({ data }) => {
console.log('data', data)
this.data = []
- data.results.forEach((item) => this.data.push(item))
+ data.features.forEach((item) => this.data.push(item))
})
.catch((error) => {
this.data = []
diff --git a/config/i18n.ts b/config/i18n.ts
index cf9669d..f431167 100644
--- a/config/i18n.ts
+++ b/config/i18n.ts
@@ -1,8 +1,10 @@
import en from './locales/en.json'
+import bz from './locales/bz.json'
import fr from './locales/fr.json'
+import oc from './locales/oc.json'
export default {
- locale: 'en',
- fallbackLocale: 'en',
- messages: { en, fr },
+ locale: 'fr',
+ fallbackLocale: 'fr',
+ messages: { bz, en, fr, oc },
}
diff --git a/config/locales/bz.json b/config/locales/bz.json
new file mode 100644
index 0000000..dcd5155
--- /dev/null
+++ b/config/locales/bz.json
@@ -0,0 +1,4 @@
+{
+ "locale_descritption": "Brezhoneg",
+ "message": "Bonjour en Breton!"
+}
diff --git a/config/locales/en.json b/config/locales/en.json
index 36de2b3..291e2f6 100644
--- a/config/locales/en.json
+++ b/config/locales/en.json
@@ -1,3 +1,4 @@
{
- "message": "hello!"
+ "locale_descritption": "English",
+ "message": "Hello in English!"
}
diff --git a/config/locales/fr.json b/config/locales/fr.json
index 8154b3c..5a36f33 100644
--- a/config/locales/fr.json
+++ b/config/locales/fr.json
@@ -1,3 +1,4 @@
{
- "message": "bonjour!"
+ "locale_descritption": "Français",
+ "message": "Bonjour en Français!"
}
diff --git a/config/locales/oc.json b/config/locales/oc.json
new file mode 100644
index 0000000..4c5e20b
--- /dev/null
+++ b/config/locales/oc.json
@@ -0,0 +1,4 @@
+{
+ "locale_descritption": "Occitan",
+ "message": "bonjour en occitan!"
+}
diff --git a/layouts/default.vue b/layouts/default.vue
index d2e1860..75bba6e 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -42,21 +42,12 @@