Skip to content

Commit

Permalink
feat(frontend): add constants for mapping back class names from langu…
Browse files Browse the repository at this point in the history
…age ID's

Co-Authored-By: Harjot Singh <contact@harjot.me>
  • Loading branch information
saihaj and Harjot1Singh committed May 15, 2020
1 parent b3199cf commit b976539
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/frontend/src/lib/consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,12 @@ export const LANGUAGES = {
hindi: 4,
urdu: 5,
}

export const LANGUAGE_NAMES = {
[ LANGUAGES.english ]: 'english',
[ LANGUAGES.punjabi ]: 'punjabi',
[ LANGUAGES.spanish ]: 'spanish',
[ LANGUAGES.hindi ]: 'hindi',
[ LANGUAGES.urdu ]: 'urdu',
}

0 comments on commit b976539

Please sign in to comment.