rename var to DEFAULT_LANG
only create default index if locales is empty