jooby/src/main/java/org/jooby/Request.java
/**
   * Get a locale that best matches the current request or the default locale as specified
   * in <code>application.lang</code>.
   *
   * @return A matching locale.
   */
Get a locale that best matches the current request or the default locale as specified
in application.lang.

@return A matching locale.
Get a locale that best matches the current request or the default locale as specified in application . lang . @return A matching locale .
@Nonnull
  default Locale locale() {
    return locale((priorityList, locales) -> Optional.ofNullable(Locale.lookup(priorityList, locales))
        .orElse(locales.get(0)));
  }
@ Nonnull default Locale locale ( ) { return locale ( ( priorityList , locales ) -> Optional . ofNullable ( Locale . lookup ( priorityList , locales ) ) . orElse ( locales . get ( 0 ) ) ) ; }
Get a locale that best matches the current request or the default locale as specified
 in <code>application.lang</code>.
Get a locale that best matches the current request or the default locale as specified in <code > application . lang< / code > .