title: Are there constants for language codes in java or in a java library?
body: <p>Are there any constants for language codes like <code>"en"</code> or <code>"de"</code> in java or in a java library? (Or is using the strings OK?)</p>
  
  <p>I know that something like</p>
  
  <pre><code>Locale.COUNTRY-NAME.getLanguage()
  </code></pre>
  
  <p>would work, but I am searching for something more streamlined like </p>
  
  <pre><code>Locale.LANGUAGE-NAME
  </code></pre>