diff --git a/README.md b/README.md index 16c6e29ab633ff3fec238a5a0ea5bd69bd856156..3fc1001e8da793aaeeb0bc0113999c2eff8d83b2 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