code: @GET
      @Produces(MediaType.APPLICATION_JSON)
      @RequiresPermissions(I18nPermissions.LOCALE_READ)
      public Response getAvailableLocales() {
          List<LocaleRepresentation> availableLocales = localeFinder.findAvailableLocales();
          if (!availableLocales.isEmpty()) {
              return Response.ok(availableLocales).build();
          }
          return Response.noContent().build();
      }
docs: Gets all the locales available in the application.
  
  @return list of locale representation or 204 (no content)