001/* 002 * Copyright 2017-2022 Product Mog LLC, 2022-2026 Revetware LLC. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package com.lokalized; 017 018/** 019 * Describes the relationship used to select a locale. 020 * 021 * @author <a href="https://revetkn.com">Mark Allen</a> 022 * @since 3.0.0 023 */ 024public enum LocaleMatchType { 025 /** No acceptable supported locale was found. */ 026 NONE, 027 /** The requested and supported locale tags matched exactly. */ 028 EXACT, 029 /** The requested and supported locale tags matched after canonicalization. */ 030 CANONICAL, 031 /** The supported locale matched through a CLDR parent-locale fallback. */ 032 CLDR_FALLBACK, 033 /** The requested and supported locales matched after likely-subtag expansion. */ 034 LIKELY_SUBTAG, 035 /** The supported locale matched an RFC 4647 extended language range. */ 036 EXTENDED_RANGE, 037 /** The requested and supported locales matched by primary language. */ 038 PRIMARY_LANGUAGE, 039 /** The supported locale was selected by an acceptable wildcard range. */ 040 WILDCARD 041}