fix: refactor: check if locale has an empty language, so use the default language from the system