Skip to content

Commit

Permalink
v1.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
seydx committed Jan 25, 2022
1 parent 0fbad3a commit c0b1adf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog
All notable changes to this project will be documented in this file.

# v1.1.6 - 2022-01-25

## Bugfixes
- Fixed an issue where the interface was not accessible because the browser language could not be determined (camera.ui)

# v1.1.5 - 2022-01-25

## Other Changes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "camera.ui",
"version": "1.1.5",
"version": "1.1.6",
"description": "NVR like user interface for RTSP capable cameras.",
"author": "SeydX (https://github.com/SeydX/camera.ui)",
"scripts": {
Expand Down
8 changes: 7 additions & 1 deletion ui/src/i18n/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import Vue from 'vue';
import VueI18n from 'vue-i18n';
import Languages from './languages';

const defaultLanguage = 'en';

/**
* Update this each time a new translation is added
* This is displayed in the interface for selecting the language
Expand All @@ -22,11 +24,15 @@ const languageList = {
const languages = ['de', 'nl', 'en'];

const supportedLanguages = (lang) => {
if (!lang) {
return defaultLanguage;
}

switch (lang) {
case languages.find((l) => l === lang):
return lang;
default:
return 'en';
return defaultLanguage;
}
};

Expand Down

0 comments on commit c0b1adf

Please sign in to comment.