Kevin Wu

Kevin Wu

Special ProjectsGeneral Translation

Kevin focuses on special projects at General Translation.

He was a former software engineer at the US Treasury, venture capitalist at a16z (and founding team member of Speedrun), and investment banker at J.P. Morgan.

Kevin grew up in China and co-founded two internet start-ups while in High School (which was when he taught himself how to code). His time in China inspired him to move to the Bay Area to attend UC Berkeley where he studied engineering and business.

文章

显示 6 条,共 57 条

知识库

如何翻译 Vue 应用?

翻译 Vue 应用,就是让每个模板字符串都按当前语言进行查找,并将其翻译成每种目标语言。General Translation 的 gt-vue 插件会翻译包裹在 <T> 组件中的内容,npx gt translate 则会为每种目标语言生成一个目录。

,
知识库

如何翻译 React 应用?

翻译 React 应用,需要先对组件进行国际化,使其以用户的语言渲染,再将每个字符串翻译成你支持的各种语言。General Translation 的 gt-react 在 <T> 组件中原地翻译 JSX,npx gt translate 则会为每种语言生成一个文件。

,
知识库

如何翻译 React Native 应用?

在组件中标记文本,为每种语言生成一个翻译文件,添加 Intl 兼容性补丁,然后根据设备语言加载对应的文件。使用 General Translation 实验性的 gt-react-native 时,只需用 <T> 包裹文本,Babel 插件会自动添加 polyfills,npx gt translate 则负责生成翻译文件。

,
知识库

如何翻译 Node.js 应用?

检测每个请求的语言(通常依据其 Accept-Language 请求头),并以该语言返回所有字符串。General Translation 的 gt-node 通过 withGT 为每个请求绑定区域设置,并通过 getGT 翻译字符串,所用译文由 npx gt translate --publish 在部署前生成。

,
知识库

如何翻译 Mintlify 文档站点?

为每种语言创建一个文件夹,在其中存放每个页面的译文副本,并将每种语言添加到 docs.json 导航中。General Translation 的 AI 智能体 Locadex 会提交一个拉取请求,添加翻译后的页面和各语言的导航,之后还会持续翻译后续变更。

,
知识库

如何翻译 JSX 之外的字符串?

对于每个不属于 JSX 子节点的字符串(例如占位符或模块作用域常量),应在其渲染的位置通过翻译函数处理。General Translation 的 useGT 钩子会返回该函数,而 msg 搭配 useMessages 可以翻译在组件外部定义的常量。

,