Package org.djunits

Class AvailableLocalizations

java.lang.Object
org.djunits.AvailableLocalizations

public final class AvailableLocalizations extends Object

Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.

Author:
Peter Knoppers
  • Method Details

    • availableLocalizations

      public static List<String> availableLocalizations(String prefix, String path)
      Build a list of locale names that are available for a given prefix.
      Parameters:
      prefix - String; the prefix of the localization file names
      path - String; the path to the resource directory to scan
      Returns:
      List<String>; the list of matching locale names (which always starts with "en", even though there may not be such a localization file)