Package org.djunits
Class AvailableLocalizations
java.lang.Object
org.djunits.AvailableLocalizations
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 Summary
Modifier and TypeMethodDescriptionavailableLocalizations
(String prefix, String path) Build a list of locale names that are available for a given prefix.
-
Method Details
-
availableLocalizations
Build a list of locale names that are available for a given prefix.- Parameters:
prefix
- String; the prefix of the localization file namespath
- 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)
-