@webitel/ui-sdk 0.9.36 → 0.9.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "0.9.36",
3
+ "version": "0.9.37",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -21,7 +21,10 @@ export default {
21
21
  localizedOptions() {
22
22
  const optsHaveLocale = this.options.length && this.options[0].locale; // just check 1st el
23
23
  if (optsHaveLocale) {
24
- return this.options.map((opt) => ({ ...opt, name: this.$t(opt.locale) }));
24
+ return this.options.map((opt) => ({
25
+ ...opt,
26
+ name: Array.isArray(opt.locale) ? this.$tc(...opt.locale) : this.$t(opt.locale),
27
+ }));
25
28
  }
26
29
  return this.options;
27
30
  },