Defining your own locales

It is up to you how you use the user-defined variant component of the locale identifier. You might record voice segments for an application using different voices: male and female, for example. You would identify these voice segments as, for example, en_US_MALE, en_US_FEMALE).

You might have a different greeting at the beginning of an application, depending on which branch of your company the call is for, even though the logic of the application is the same for all branches. To achieve this, invent a locale identifier for each branch (for example, en_US_CHICAGO, en_US_WASHINGTO, en_US_NEWYORK). Then name each greeting voice segment using the appropriate locale identifier, and use different default locales, in one of the ways described in Internationalization, to run instances of the application for each branch. The other voice segments in the application, common to all branches, should be in the base locale (en_US).

Whenever a voice segment for a specific variant cannot be found, a voice segment for the country or region and language is searched for.