io.github.frikit.twirlspec.i18n
Members list
Type members
Classlikes
Compares the same view rendered in several languages.
Compares the same view rendered in several languages.
renderInEachLanguage(memberNameView(form, edit = false)) must translateConsistently
The first page is the base by default, or nominate one with basedOn. Nothing here knows about any particular language.
Attributes
- Source
- I18nChecks.scala
- Supertypes
-
trait TwirlSpecDsltrait TwirlMatcherstrait ContentExpectationstrait FormExpectationstrait FramingExpectationsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait AllCheckstrait GovukServiceCheckstrait HmrcServiceCheckstrait PageCasestrait PageCataloguetrait TwirlSuiteShow all
The default configuration, and what it leaves untranslated.
The default configuration, and what it leaves untranslated.
Attributes
- Companion
- class
- Source
- TranslationStandards.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TranslationConfig.type
What a page is allowed to differ by between languages.
What a page is allowed to differ by between languages.
Value parameters
- sameTextIsFine
-
text that legitimately reads the same in every language: product names, units, anything not worth translating
Attributes
- Companion
- object
- Source
- TranslationStandards.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
One check comparing a translated page against the language it was translated from.
One check comparing a translated page against the language it was translated from.
Attributes
- Source
- TranslationStandards.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Whether a view says the same thing in every language it is offered in.
Whether a view says the same thing in every language it is offered in.
The message-file checks in twirl-spec-messages compare the files. These compare the pages those files produce, which is where a translation that parses but renders differently shows up: a control that vanished, a link that kept its English href, a heading level that moved.
Nothing here is specific to any language pair. Nominate a base and every other language is measured against it.
Attributes
- Source
- TranslationStandards.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TranslationStandards.type