import Voca from 'voca'

export default {
  methods: {
    m_replaceVariablesLangcode(fields) {
      const stringifyFields = Voca.replaceAll(
        JSON.stringify(fields),
        '{currentLang}',
        this.$store.getters.getCurrentLang
      )

      return JSON.parse(stringifyFields)
    }
  }
}
