BundleLine

interface BundleLine

Represents a single I18NBundle. Expects that its toString method returns a valid bundle line ID. Advised to be implemented by an enum to introduce type-safe bundle representation with compile time safety.

Properties

Link copied to clipboard
open val bundle: I18NBundle

I18NBundle instance storing the localized line. Has to be overridden in order to use nls and invoke methods.

Link copied to clipboard
open val nls: String

I18NBundle line value provided by bundle. Use this property if the bundle line has no arguments.

Functions

Link copied to clipboard
open operator fun invoke(): String

nls alias for extra conciseness. Use this property if the bundle line has no arguments.

open operator fun invoke(vararg arguments: Any?): String

nls alias for extra conciseness. Use this method if the bundle line has any arguments.

Link copied to clipboard
open fun nls(vararg arguments: Any?): String

Use this method if the bundle line has any arguments.