remove un-needed controller function and auto-update .i18nLocale according to url path