Fixes typo in renderer/swig (was locales instead of locals)

Also fixing part of https://github.com/tommy351/hexo/issues/404