buildFilename static method

String buildFilename(
  1. String langCode, [
  2. String? ctryCode
])

Builds the translations YAML file name for the given language code named langCode and country code named ctryCode

Implementation

static String buildFilename(String langCode, [String? ctryCode]) {
  var fileRoot = '$langCode';

  if (ctryCode != null && ctryCode.isNotEmpty) {
    fileRoot += '_$ctryCode';
  }

  return '$fileRoot.yaml';
}