TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Stripe for localization that abuses Git as back end

2 点作者 samuelstros超过 2 年前
I am prepared to get hammered by HN. Remember the dropbox comment <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9224" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9224</a> ?<p>Hey HN,<p>I think I&#x27;ve found what could make localization of software simpler and, by accident, might lead to a new generation of software that is powered by files (?), version control, and git enabled workflows like branches &amp;&amp; PRs.<p># What I am building<p>I am building &quot;Stripe for localization&quot; which means infrastructure that eases localization (i18n) via dev tools (CLI, automation via CI&#x2F;CD, IDE extension, ESLint for translations), an editor for translators to manage translations, and potentially more (share your feedback!).<p># One major problem<p>Localization is a coordination issue between different departments. Creating translations is the easy part. But, how can developers and translators collaborate together with ease? How do developers know whether translations exist and they can deploy to production? How can translators provide feedback on the UI e.g. the German translation is too long and breaks the UI?<p># The insight<p>1. Software engineering teams use version control enabled workflows for localization: Conduct changes (commits) -&gt; Open a PR (preview, discuss &amp; automate) -&gt; deploy.<p>2. Trying to sync states of multiple teams, especially of one (software engineers) use version control workflows like branches with each other is a massive pain without the upside of version control powered automation (CI&#x2F;CD).<p>3. Wait a second. The workflow of change -&gt; pr -&gt; agree are universal (?) to any content driven collaboration. Couldn&#x27;t we achieve cross team collaboration and automation on one source of truth if we pull translators into git repos [0]?<p># Abusing git as backend<p>The either great or absolutely horrible decision now is to build everything on git, including the editor, a (newborn - be gentle with feedback :D) baby of VSCode + Figma to manage translations.<p>## Pros<p>- no hosting, accounts, and synchronization required.<p>- use git workflows like pull requests.<p>- automation via CI&#x2F;CD.<p>- single source of truth that developers and translators collaborate on.<p>- unified architecture for dev tools and apps - low barrier for adoption. just one config file is needed.<p>## Cons<p>- uff, abusing a CLI as backend that runs in the browser on top of a virtual filesystem is challenging.<p>- scalability issues. larger repos (&gt;30MB) take minutes to load or crash the browser<p>- complicated workflows. ask a translator what a commit is.<p>- the benefit of git might not justify the engineering and education effort we are conducted right now<p># Try it out yourself (and roast me)<p>You can test the editor here <a href="https:&#x2F;&#x2F;inlang.com&#x2F;editor&#x2F;github.com&#x2F;inlang&#x2F;example" rel="nofollow">https:&#x2F;&#x2F;inlang.com&#x2F;editor&#x2F;github.com&#x2F;inlang&#x2F;example</a>.<p>While we are at it, could you try to contribute a translation? Can be jibberish, but it would make my day if I the contribution flow works :D<p>## Footnotes<p>[0] March 2022 &quot;git as single source of truth&quot; - <a href="https:&#x2F;&#x2F;github.com&#x2F;inlang&#x2F;inlang&#x2F;discussions&#x2F;115">https:&#x2F;&#x2F;github.com&#x2F;inlang&#x2F;inlang&#x2F;discussions&#x2F;115</a>

1 comment

theamk超过 2 年前
I haven&#x27;t read your repo very carefully, but this strikes me as strange:<p>&gt; - no hosting, accounts, and synchronization required.<p>&gt; - use git workflows like pull requests.<p>that seems self-contradictory? &quot;git&quot; tool has no support for pull requests, only websites like github support it. And &quot;git&quot; only deals with local files, you need to either _host_ your own git repo, have _account_ on github, or use some sort of (rare) _synchronization_ system.<p>When you say &quot;git&quot;, do you mean &quot;github.com&quot; by any chance? Because then you can use &#x27;repos&#x2F;contents&#x27; API endpoint to get and update contents without emulating git in javascript.
评论 #34715615 未加载
评论 #34715571 未加载