Package

ru.makkarpov

scalingua

Permalink

package scalingua

Visibility
  1. Public
  2. All

Type Members

  1. abstract class CompiledLanguage extends Language with PluralFunction with TaggedLanguage

    Permalink

    A compiled representation of .po file that requires much less code to parse.

    A compiled representation of .po file that requires much less code to parse. We cannot embed all strings in Scala file since Java has limit on constant pool (65k) and on length of single string (also 65k). So we extract them to separate file and keep in Scala class only compiled plural function.

    This class is just a stub, actual implementation will be generated by SBT plugin.

  2. class LValue[+T] extends (Language) ⇒ T

    Permalink

    Value that can be translated lazily (e.g.

    Value that can be translated lazily (e.g. for definitions whose target language is not known a priori)

  3. trait Language extends TaggedLanguage

    Permalink

    Base trait for objects reprensenting languages.

  4. final case class LanguageId(language: String, country: String) extends Product with Serializable

    Permalink

    Class representing a pair of language and country (e.g.

    Class representing a pair of language and country (e.g. en_US)

    language

    ISO code of language

    country

    ISO code of country, may be empty for generic languages.

  5. class MergedLanguage extends Language

    Permalink
  6. class Messages extends AnyRef

    Permalink

    Class representing a collection of languages.

  7. trait OutputFormat[R] extends AnyRef

    Permalink

    An implicit evidence that strings could be interpolated into type R.

    An implicit evidence that strings could be interpolated into type R.

    R

    Result type of interpolation

  8. trait PluralFunction extends AnyRef

    Permalink

    Trait representing Plural-Forms *.po header, either statically compiled by SBT plugin or dynamically parsed.

  9. trait TaggedLanguage extends AnyRef

    Permalink

Value Members

  1. object CompiledLanguage

    Permalink
  2. object LValue

    Permalink
  3. object Language

    Permalink
  4. object LanguageId extends Serializable

    Permalink
  5. object MergedLanguage

    Permalink

    Created by makkarpov on 11.06.17.

  6. object Messages

    Permalink
  7. object OutputFormat

    Permalink
  8. object StringUtils

    Permalink

    Provides various string functions that are useful both in macros and in I18n code, such as string interpolations, escaping and unescaping.

  9. object TaggedLanguage

    Permalink

Ungrouped