Refactored grid's data sources and renamed localDir to localeDir