Skip to content

Commit

Permalink
✨ Select languages per election (#141)
Browse files Browse the repository at this point in the history
Parent issue: sequentech/meta#306
  • Loading branch information
edulix authored Nov 16, 2023
1 parent dd844d5 commit 5ada56f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/general/reference/election-creation-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,37 @@ other title instead.

If defined, it's a map of internationalization strings, grouped by language code. The provided translation will override the Election Presentation `public_title_i18n` for that language in the `election-portal` and in the `voting-booth` for this specific election.


### Election Presentation: `i18n_languages_conf`

- **Property name**: `i18n_languages_conf`
- **Type:** `Option[Object]`
- **Required:** No
- **Default:** -
- **Example:**
```json
{
// default language if anything else is equal
"default_language": "en",
// if set to `false`, we'll match browser settings with available
// languages to decide which language to load by default. If set
// to `true`, then we won't detect any browser language preferences
// and we'll always load the previously defined `default_language`
// by default.
"force_default_language": false,
// available languages for this election
"available_languages": [
"en",
"es"
]
}
```

Allows the modification of the language behavior for any election. You can
change the default language, override if the default language should be
automatically loaded, and also change the list of available languages for this
specific election. Applies on the Voting Booth and also on the Election Portal.

## Share Text Object

Object describing a series of social network links or any other type of link
Expand Down

0 comments on commit 5ada56f

Please sign in to comment.