common/src/main/java/com/kakoo/foundation/common/resource/bundle/ResourceBundleManager.java
/**
     * Extracts the resource bundle message.
     *
     * @param key Key of the resource bundle.
     * @param locale Locale to use.
     * @param parameters Parameters for message formatting.
     * @return Formatted message.
     */
Extracts the resource bundle message.
@param key Key of the resource bundle.
@param locale Locale to use.
@param parameters Parameters for message formatting.
@return Formatted message.
Extracts the resource bundle message . @param key Key of the resource bundle . @param locale Locale to use . @param parameters Parameters for message formatting . @return Formatted message .
private static String extract(final @NonNull Enum<? extends IBundle> key, final @NonNull Locale locale, final Object... parameters)
    {
        Bundle annotation = key.getDeclaringClass().getAnnotation(Bundle.class);
        String aKey = ((IBundle) key).getKey();
        aKey = annotation.root().endsWith(".") ? annotation.root() + aKey : annotation.root() + "." + aKey;
        return get(aKey, locale, parameters);
    }
private static String extract ( final @ NonNull Enum < ? extends IBundle > key , final @ NonNull Locale locale , final Object ... parameters ) { Bundle annotation = key . getDeclaringClass ( ) . getAnnotation ( Bundle . class ) ; String aKey = ( ( IBundle ) key ) . getKey ( ) ; aKey = annotation . root ( ) . endsWith ( "." ) ? annotation . root ( ) + aKey : annotation . root ( ) + "." + aKey ; return get ( aKey , locale , parameters ) ; }
Extracts the resource bundle message.
Extracts the resource bundle message .