move the locale check at the end of method Router::initRouter() to avoid undefined security policy problems
move the locale check at the end of method Router::initRouter() to avoid
undefined security policy problems

Signed-off-by: tbl0605 <fcab9f13915c1b10a663c20339f2ff2ea8c88a77@gmail.com>
tbl0605/PHPYAM