Skip to content
Snippets Groups Projects
Commit e1edbcfd authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Updated docs

parent 413031a1
No related branches found
No related tags found
No related merge requests found
...@@ -110,22 +110,22 @@ I couldn't get the per-component translation thing working (where you embed it i ...@@ -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. 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 ``` html
<template> <template>
<div class="hello"> <div>
<h1>{{ $t('startpage') }}</h1> <!-- ... -->
<router-link to="/observation" custom v-slot="{navigate}"> <div class="alert alert-info">
<button type="button" class="btn btn-primary" @click="navigate">+</button> <button type="button" class="close" data-dismiss="alert" aria-label="Close">
</router-link> <span aria-hidden="true">&times;</span>
</button>
</div> {{ $t("placeslist.explanation") }}
</div>
<!-- ... -->
</template> </template>
``` ```
**(TODO: Update this documentation when code in ObservationList changes)**
Change the startup language in the app here in `/i18n.js`: Change the startup language in the app here in `/i18n.js`:
``` javascript ``` javascript
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment