Language Availability module
| Edition | Incubator (services) | ||
| Git | |||
| Latest | 1.0 
 | 
The Language Availability module provides more granular control over the language availability in site definitions.
| This module is at the INCUBATOR level. | 
Installing with Maven
Maven is the easiest way to install the module. Add the following to your bundle:
<dependency>
  <groupId>info.magnolia.i18n</groupId>
  <artifactId>magnolia-languages-availability</artifactId>
  <version>1.0</version>
</dependency>
<dependency>
  <groupId>info.magnolia.i18n</groupId>
  <artifactId>magnolia-languages-availability-livecopy</artifactId> (1)
  <version>1.0</version>
</dependency>| 1 | This is only needed if using Live Copy. | 
Configuration
i18n authoring support
The module automatically changes the implementation of the i18n authoring support with the following:
i18n content support
In order to use the languages availability feature on your website, you will need first to change the i18n content support of the related site definition with the following implementation:
mySiteDefinition:
  i18n:
    class: info.magnolia.i18n.language.availability.MultiSiteI18nContentSupportWithSecuritymySiteDefinition:
  i18n:
    class: info.magnolia.i18n.language.availability.livecopy.LiveCopyI18nContentSupportWithSecurityYou can then assign availabilities per language as following:
mySiteDefinition:
  i18n:
    class: info.magnolia.i18n.language.availability.livecopy.LiveCopyI18nContentSupportWithSecurity.
    locales: ...
    localesAvailabilities: (1)
      en:
        access:
          roles:
            - role1
            - role2| 1 | The name of the nodes under localesAvailabilitiesmust match the names of the nodes underlocales. |