mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Everything to ES2020
This commit is contained in:
parent
84ffe1e552
commit
78178ecc2f
16 changed files with 35 additions and 45 deletions
|
|
@ -62,7 +62,7 @@ export const
|
|||
* @returns {string}
|
||||
*/
|
||||
i18n = (key, valueList, defaulValue) => {
|
||||
let result = null == defaulValue ? key : defaulValue;
|
||||
let result = defaulValue ?? key;
|
||||
let path = key.split('/');
|
||||
if (I18N_DATA[path[0]] && path[1]) {
|
||||
result = I18N_DATA[path[0]][path[1]] || result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue