getLangSpec method

String getLangSpec()

Return the language locale specifier.

Implementation

String getLangSpec() {
  String spec = language ?? '';
  if (spec.isNotEmpty && script != null && script!.isNotEmpty) {
    spec += '-${script!}';
  }
  return spec;
}