TranslationRule

io.github.frikit.twirlspec.i18n.TranslationRule
final case class TranslationRule(id: String, description: String, severity: Severity = ...)(run: (Page, Page) => Seq[Violation])

One check comparing a translated page against the language it was translated from.

Attributes

Source
TranslationStandards.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def check(base: Page, other: Page): Seq[Violation]

The violations this rule finds comparing a translated page with the base one, each a warning when the rule is.

The violations this rule finds comparing a translated page with the base one, each a warning when the rule is.

A comparison reads whole pages, so it runs with coverage recording paused on both: what it looked at says nothing about what the spec asserted, and assertEverything must not pass on its account.

Attributes

Source
TranslationStandards.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product