Refactor getLanguage

This commit is contained in:
Jed Fox 2020-04-01 13:48:38 -04:00
parent cba0a57ce3
commit e0e1e4fde7
No known key found for this signature in database
GPG key ID: 0B61D18EA54B47E1
4 changed files with 3 additions and 8 deletions

View file

@ -42,7 +42,7 @@ export function setLanguage(newLng: string | undefined) {
}
export function getLanguage() {
return currentLanguage.lng;
return currentLanguage;
}
function findPartsForData(data: any, parts: string[]) {