{"id":1159,"date":"2017-08-04T16:19:36","date_gmt":"2017-08-04T16:19:36","guid":{"rendered":"http:\/\/blog.mozilla.org\/l10n\/?p=1159"},"modified":"2020-06-30T18:29:01","modified_gmt":"2020-06-30T18:29:01","slug":"create-a-localized-build-locally","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/l10n\/2017\/08\/04\/create-a-localized-build-locally\/","title":{"rendered":"Create a localized build locally"},"content":{"rendered":"<p>Yesterday we changed the way that you create localized builds on mozilla-central.<\/p>\n<p>This works for developers doing regular builds, as well as developers or localizers without a compile environment. Sadly, users of artifact builds are <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1387485\">not supported<\/a>.<\/p>\n<p>For language packs, a mere<\/p>\n<p><code>.\/mach build langpack-de<\/code><\/p>\n<p>will work. If you&#8217;d rather wish to build a localized package, you&#8217;ll want to get the package first. If you&#8217;re building yourself, that&#8217;s<\/p>\n<p><code>.\/mach package<\/code><\/p>\n<p>and if you want to get a Nightly build from archive.mozilla.org, just <\/p>\n<p><code>.\/mach build wget-en-US<\/code><\/p>\n<p>If you want to do that for Firefox for Android, you&#8217;ll need to specify which platform you want. Set <code>EN_US_BINARY_URL<\/code> to the <a href=\"http:\/\/archive.mozilla.org\/pub\/mobile\/nightly\/\">latest-mozilla-central-*<\/a> path for the binary you want to test.<\/p>\n<p>And then you just<\/p>\n<p><code>.\/mach build installers-fr<\/code><\/p>\n<p>That&#8217;ll take care about getting the french l10n repository, and do all the necessary things to get you a nice little installer\/package in <code>dist<\/code>. Pick your favorite language from <a href=\"https:\/\/hg.mozilla.org\/l10n-central\/?sort=lastchange\">our repositories<\/a>. Care for a RTL build? <code>.\/mach installers-fa<\/code> will get you a Persian one \ud83d\ude09 .<\/p>\n<p>As with other repositories we clone into <code>~\/.mozbuild<\/code>, you&#8217;ll want to update those every now and then. They&#8217;re in <code>l10n-central\/*<\/code>, a repository for each language you tried.<\/p>\n<p>Documentation is on <a href=\"https:\/\/firefox-source-docs.mozilla.org\/build\/buildsystem\/locales.html\">firefox-source-docs.rtd<\/a>, bugs <a href=\"https:\/\/bugzilla.mozilla.org\/enter_bug.cgi?product=Core&#038;component=Build%20Config&#038;cc=l10n@mozilla.com\">go here<\/a>. This works for Firefox, Firefox for Android, and Thunderbird.<\/p>\n<p>And now you can safely forget all the things you never wanted to know about localized builds.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday we changed the way that you create localized builds on mozilla-central. This works for developers doing regular builds, as well as developers or localizers without a compile environment. Sadly, &hellip; <a class=\"go\" href=\"https:\/\/blog.mozilla.org\/l10n\/2017\/08\/04\/create-a-localized-build-locally\/\">Read more<\/a><\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8806,137],"tags":[30,199],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/posts\/1159"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/comments?post=1159"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/posts\/1159\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/media?parent=1159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/categories?post=1159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/tags?post=1159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}