pathIn method

String pathIn(
  1. String languageCode
)

The page's path under web/, and on the public site, in languageCode: fr/terms.html for French, terms.html for English and for every language without a translation.

Implementation

String pathIn(String languageCode) => translations.contains(languageCode)
    ? '$languageCode/$fileName'
    : fileName;