Home Rubyrails 根据浏览器的语言,来自动识别
Post
Cancel

Rubyrails 根据浏览器的语言,来自动识别

参考:  https://github.com/iain/http_accept_language

使用这个gem, 就可以自动识别浏览器的语言了。(原理是识别其中的 accept-language ) 

This post is licensed under CC BY 4.0 by the author.