Skip to content

Commit 85e0400

Browse files
committed
fix transaltions for unknown plug type
1 parent 7d6dd74 commit 85e0400

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

src/api/mobility.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export async function request__plug_types() {
4040
// merge lists of stations by scode
4141
function merge_by_scode(...lists_to_merge) {
4242
const ret = {};
43-
lists_to_merge.flat().forEach(e => ret[e.scode] = {...ret[e.scode], ...e});
43+
lists_to_merge.flat().forEach(e => ret[e.scode] = { ...ret[e.scode], ...e });
4444
return Object.values(ret);
4545
}
4646

@@ -64,11 +64,11 @@ export async function request__stations_plugs(station_id) {
6464
*/
6565
export async function request__get_stations_details() {
6666
this.is_loading = true;
67-
const all_stations = await(await fetch(
67+
const all_stations = await (await fetch(
6868
`${NINJA_BASE_PATH}/flat/EChargingStation?limit=-1&offset=0&where=sactive.eq.true&shownull=false&distinct=true&origin=${fetch_origin}`,
6969
fetch_options
7070
)).json();
71-
const stations_with_data = await(await fetch(
71+
const stations_with_data = await (await fetch(
7272
`${NINJA_BASE_PATH}/flat/EChargingStation/number-available/latest?select=mvalue,scode&limit=-1&offset=0&where=sactive.eq.true&shownull=false&distinct=true&origin=${fetch_origin}`,
7373
fetch_options
7474
)).json();

src/components/filter_box/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export function render__filter_box() {
214214
@change="${e => handle__access_type(e)}"
215215
/>
216216
<span class="custom-checkbox-checkbox mr-2"></span>
217-
${o[2][this.language]}
217+
${o[2] === undefined ? 'whaat' : o[2][this.language]}
218218
</label>
219219
</div>
220220
${i !== this.access_types.length - 1

src/translations.js

+5
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ export const t = {
8888
de: 'Privat',
8989
it: 'Privato'
9090
},
91+
unknown: {
92+
en: 'Unkown',
93+
de: 'Unbekannt',
94+
it: 'Sconosciuto'
95+
},
9196
private_withpublicaccess: {
9297
en: 'Private with public access',
9398
de: 'Privat mit öffentlichem Zugang',

0 commit comments

Comments
 (0)