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
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">&times;</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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment