Home
Sign Up
Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
V2EX
›
程序员
前端支持国际化,后端接口是不是把对应的语言信息一起返回?
darknoll
·
Sep 2, 2021
· 1181 views
This topic created in 1900 days ago, the information mentioned may be changed or developed.
比如错误信息,返回所有语言的错误信息?
返回
错误
语言
信息
1 replies
eurry
Sep 2, 2021
1
通用的错误提示,我是后端返回 code,前端根据客户端的语言 mapping 到具体语言。
业务内容的国际化,我是后端根据 header 确定语言,自动翻译,只返回这个语言的翻译后的内容。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
4479 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 30ms ·
UTC 07:18
·
PVG 15:18
·
LAX 23:18
·
JFK 02:18
♥ Do have faith in what you're doing.
❯