diff options
Diffstat (limited to 'resources/js/classes/Area.js')
-rw-r--r-- | resources/js/classes/Area.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/resources/js/classes/Area.js b/resources/js/classes/Area.js index e8d7acc..f518f22 100644 --- a/resources/js/classes/Area.js +++ b/resources/js/classes/Area.js @@ -12,7 +12,11 @@ class Area { async initialize () {} get name () { - return DB.areas[this.slug].name; + return translate(this.alternateSlug) || slugToName(this.slug); + } + + get alternateSlug () { + return DB.areas[this.slug]['modules/tuxemon.slug']; } get encounters () { |