title: How to modularize i18n files
body: <p>I'm completely new to i18n. Now starting to structure my React Native app for translation.</p>
  
  <p>Most of the metadata in the app comes from the server on demand as json files describing structure of a certain module. A typical client might have about 5 to 50 such "modules" loaded into it's Redux store.</p>
  
  <p>One module type looks like this (simplified):</p>
  
  <pre><code>{
    id: 5,
    modifiedAt: new Date('2017-02-22T09:50:50.212+0100'),
    name: 'Module name',
    version: '1.0.0',
    definition: {
      preconditions: {},
      actions: {},
      effects: {},
      fieldDefinitions: {
        room: {
          title: 'Field title for "room"',
          warning: 'Room is missing',
          helpText: 'Enter room id/name',
          type: 'string',
          isRequired: true,
        },
      ui: {
        title: 'Module title, i.e. title on input form',
        menuItem: {
          iconName: 'md-settings',
          iconLibrary: 'Ionicons',
          iconColor: null,
          sortOrder: 99,
        },
        sections: [
          {
            id: 'ed472749-ec3d-4b72-9ce9-f88ee703b2cf',
            title: 'Installation',
            isRequired: true,
            formFields: ['room', ...],
          },
          {
            id: 'c070bfdf-88f1-423a-8854-b47b154c2359',
            title: 'Photo before started repair',
            isRequired: true,
            sectionType: 'media',
          }
        ],
      },
    },
    jsonSchema: {
      //schema to validate form output before saving
      //also used by API before saving to database
    },
    i18n: {
      en: {
  
      },
      de: {
  
      }
    }
  };
  </code></pre>
  
  <p>I have added 18n at the end of the json, as this is my stab on this for the moment. Modules can be custom made for certain customers. I'm thinking that it would be nice to encapsulate i18n into each module. </p>
  
  <p>I'm thinking of using react-i18next for this as it seems well documented and will also work when I need to translate my Express site.</p>
  
  <p>I'm also thinking of giving each module a unique guid which I could use as namespace-id when the app loads each i18n file.</p>
  
  <p>Is this a reasonable way to modularize i18n files?</p>
  
  <p>I've searched for i18n tutorials, but I only end up in language specific tutorials. Can anyone recommend an i18n primer with good discussions on what structure to choose, how to use namespaces, how to modularize, etc.</p>