This pull request aims to provide two new options to the plugin.
defaultLanguage - optional, if omitted the first value from languages array will be used as the default plugin language
defaultLanguageAsFallback - optional, disabled if omitted, allow to use the defaultLanguage as virtual getter fallback in case the value does not exist for the current language
The first one let you choose a different defaultLanguage than the first language of the array (implemented mainly for the second one).
The second one implements a language fallback, so if there is no content for the current language, the default language is used a fallback.
I'm using the fork for multiple months without issue though I would pull request back, there is no tests written so I did not add any. Let me know if something is wrong and I will fix it.
This pull request aims to provide two new options to the plugin.
defaultLanguage
- optional, if omitted the first value from languages array will be used as the default plugin languagedefaultLanguageAsFallback
- optional, disabled if omitted, allow to use the defaultLanguage as virtual getter fallback in case the value does not exist for the current languageThe first one let you choose a different defaultLanguage than the first language of the array (implemented mainly for the second one). The second one implements a language fallback, so if there is no content for the current language, the default language is used a fallback.
I'm using the fork for multiple months without issue though I would pull request back, there is no tests written so I did not add any. Let me know if something is wrong and I will fix it.