getLanguage

getLanguage is a helper function which will return the current Dashboard locale that the user running the Dashboard with from userSettings

How to use

import { Plugin } from'@root'

Plugin.getLanguage()

This will return the locale value of the current Dashboard language.

Available supported languages:

[
    'en_US', // English
    'sv_SE', // Swidsh
    'ar_SA', // Arabic
    'da_DK', // Danish
    'nn_NO', // Norwegian
]

Last updated