<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>I18n on Andrew Quinn&#39;s TILs</title>
    <link>https://til.andrew-quinn.me/tags/i18n/</link>
    <description>Recent content in I18n on Andrew Quinn&#39;s TILs</description>
    <image>
      <title>Andrew Quinn&#39;s TILs</title>
      <url>https://til.andrew-quinn.me/papermod-cover.png</url>
      <link>https://til.andrew-quinn.me/papermod-cover.png</link>
    </image>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 06 Jul 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://til.andrew-quinn.me/tags/i18n/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Switching Vim colorschemes based on which keyboard layout I have active</title>
      <link>https://til.andrew-quinn.me/posts/switching-vim-colorschemes-based-on-which-keyboard-layout-i-have-active/</link>
      <pubDate>Sun, 06 Jul 2025 00:00:00 +0000</pubDate>
      
      <guid>https://til.andrew-quinn.me/posts/switching-vim-colorschemes-based-on-which-keyboard-layout-i-have-active/</guid>
      <description>&lt;p&gt;Did you know Vim has a client-server model baked in? Of course it does. If you run&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;
&lt;table style=&#34;border-spacing:0;padding:0;margin:0;border:0;&#34;&gt;&lt;tr&gt;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;&#34;&gt;
&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34; id=&#34;hl-0-1&#34;&gt;&lt;a style=&#34;outline:none;text-decoration:none;color:inherit&#34; href=&#34;#hl-0-1&#34;&gt;1&lt;/a&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;;width:100%&#34;&gt;
&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vim --servername LOVE
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;, then in another terminal something like&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;
&lt;table style=&#34;border-spacing:0;padding:0;margin:0;border:0;&#34;&gt;&lt;tr&gt;&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;&#34;&gt;
&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code&gt;&lt;span style=&#34;white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34; id=&#34;hl-1-1&#34;&gt;&lt;a style=&#34;outline:none;text-decoration:none;color:inherit&#34; href=&#34;#hl-1-1&#34;&gt;1&lt;/a&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td style=&#34;vertical-align:top;padding:0;margin:0;border:0;;width:100%&#34;&gt;
&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vim --servername LOVE --remote-send &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&amp;lt;Cmd&amp;gt;colorscheme peachpuff&amp;lt;CR&amp;gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;, you&amp;rsquo;ll find your Vim terminal switch to the creamy default theme all true gangsters
love - without you actually having to do anything.&lt;/p&gt;
&lt;p&gt;I frequently flip between a US- and Finnish-based keyboard while doing
my language studies.
I already had
&lt;a href=&#34;https://news.ycombinator.com/item?id=41519046&#34;&gt;a tiny shell script in place which plays a seventh major chord every time they switch&lt;/a&gt;,
courtesy of
&lt;a href=&#34;https://swaywm.org/&#34;&gt;Sway WM&lt;/a&gt;:&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Cloud translation is more expensive than I thought</title>
      <link>https://til.andrew-quinn.me/posts/selkouutiset-archive-now-supports-77-languages/</link>
      <pubDate>Tue, 28 Nov 2023 00:00:00 +0000</pubDate>
      
      <guid>https://til.andrew-quinn.me/posts/selkouutiset-archive-now-supports-77-languages/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://hiandrewquinn.github.io/selkouutiset-archive///2023/11/27/&#34;&gt;Example from yesterday&amp;rsquo;s news.&lt;/a&gt; Count &amp;rsquo;em yourself &amp;ndash; there&amp;rsquo;s 76 of them there.&lt;/p&gt;
&lt;p&gt;Mass i18n efforts like this are I think an underappreciated benefit of what static site generators like Hugo can give you. Actually, &lt;em&gt;especialy&lt;/em&gt; Hugo &amp;ndash; it&amp;rsquo;s multi-language support is very good, like darn near everything about the platform once you get past the initial learning curve.&lt;/p&gt;
&lt;p&gt;Another underappreciated benefit: When building HTML pages is fast, you can afford to build &lt;em&gt;a lot&lt;/em&gt; of them. A quick &lt;code&gt;hugo &amp;amp;&amp;amp; cd public/ &amp;amp;&amp;amp; fd html | wc -l&lt;/code&gt; tells us that there are about 2700 HTML files on the site, which Hugo builds in under 3000 ms on my machine. The &lt;a href=&#34;https://github.com/hiAndrewQuinn/selkouutiset-archive/actions/runs/7009764040/job/19068916472&#34;&gt;Github Action run&lt;/a&gt; which built the site as of today took a glacial 35 seconds by comparison.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
