From e1edbcfd302e14ada6fa47415a5134d4ec2e7434 Mon Sep 17 00:00:00 2001 From: Tor-Einar Skog <tor-einar.skog@nibio.no> Date: Fri, 17 Jun 2022 11:37:32 +0200 Subject: [PATCH] Updated docs --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 16c6e29..3fc1001 100644 --- a/README.md +++ b/README.md @@ -110,22 +110,22 @@ I couldn't get the per-component translation thing working (where you embed it i so all translations go into the `/locales/[languagecode].json` files. -There's a simple translation example in /components/ObservationList.js: +There's a simple translation example in `/src/components/PlacesList.vue`: ``` html <template> - <div class="hello"> - <h1>{{ $t('startpage') }}</h1> - <router-link to="/observation" custom v-slot="{navigate}"> - <button type="button" class="btn btn-primary" @click="navigate">+</button> - </router-link> - - </div> + <div> + <!-- ... --> + <div class="alert alert-info"> + <button type="button" class="close" data-dismiss="alert" aria-label="Close"> + <span aria-hidden="true">×</span> + </button> + {{ $t("placeslist.explanation") }} + </div> + <!-- ... --> </template> ``` -**(TODO: Update this documentation when code in ObservationList changes)** - Change the startup language in the app here in `/i18n.js`: ``` javascript -- GitLab