Add languages

You can create Factory OS images to ensure that the devices you ship are usable for their target users.

Languages is Factory OS

Factory OS has support for en-US, zh-CN, and zh-TW language packs. See Add languages to Factory OS to learn how to add languages.

Languages in the image configuration file

Use an image configuration file (OEMInput.xml) to add one or more languages to a Factory OS image. The following elements in OEMInput.xml configure language components:

OEMInput element Description
<Languages> Adds language packs

Languages element

Adding one or more <Language> under the <Languages> element allows you to specify the language pack(s) to include in an image.

  • Set a default language by adding the Default="true" attribute for a language. You must specify one and only one language as the default.
  • Languages use the language-culture format.

Language Example

Example snippet from OEMInput.xml. This example shows how to include two languages, with en-US set as the default language in an image:

<Languages>
    <Language Default="true">en-US</Language>
    <Language>zh-CN</Language>
</Languages>

Add languages to Factory OS

You can add en-US, zh-CN, and zh-TW language packs to Factory OS.

The instructions below assume that you've already created a Factory OS workspace:

  1. Open your OEMInput.xml file in an editor.

  2. Find the <Languages> element. It looks like this:

    <Languages>
        <Language Default="true">en-us</Language>
    </Languages>
    
  3. Add <Language> elements for each language you want to add to your image:

    <Languages>
        <Language Default="true">en-us</Language>
        <Language>zh-cn</Language>
    </Languages>
    
  4. Save the file. When you build your image, the languages you added to your OEMInput.xml will be included in your image.