getPhrase function

String getPhrase(
  1. String key,
  2. String language
)

To get the phrases for a specific language

Implementation

String getPhrase(String key, String language) {
  return '${packageLanguages[key]![language]}';
}