itube-specs 0.0.422 → 0.0.424

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.
@@ -32,13 +32,12 @@ export const useSeoLinks = (baseDomain: string, alonePage: boolean = false, i18n
32
32
  const alternateLinks = computed(() => {
33
33
  const links = [];
34
34
  const currentLocaleCode = i18n.locale.value;
35
- const currentHreflang = currentLocaleCode === 'jp' ? 'ja' : currentLocaleCode;
36
35
 
37
36
  links.push({
38
37
  rel: 'alternate',
39
- hreflang: currentHreflang,
38
+ hreflang: currentLocaleCode,
40
39
  href: createUrlWithParams(localePath(route.path, currentLocaleCode)),
41
- key: `alternate-${currentHreflang}-${route.path}`,
40
+ key: `alternate-${currentLocaleCode}-${route.path}`,
42
41
  });
43
42
 
44
43
  if (currentLocaleCode !== 'en') {
@@ -61,8 +60,8 @@ export const useSeoLinks = (baseDomain: string, alonePage: boolean = false, i18n
61
60
  ...otherLocales.map((locale) => {
62
61
  const localeCode = typeof locale === 'string' ? locale : locale.code;
63
62
  const langMap: Record<string, string> = {
64
- jp: 'ja',
65
- ch: 'zh'
63
+ ja: 'ja-JP',
64
+ zh: 'zh-CN'
66
65
  };
67
66
  const hreflang = langMap[localeCode] || localeCode;
68
67
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.422",
4
+ "version": "0.0.424",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {
@@ -2,8 +2,8 @@ import type { IChipsItem } from '../../../types';
2
2
 
3
3
  export function convertStringArrayToChips(array: string[], prefix: string, resetPath: string): IChipsItem[] {
4
4
  return array.map((item) => ({
5
- title: item,
6
- value: item,
5
+ title: item.toLowerCase() === '#' ? 'post' : item,
6
+ value: item.toLowerCase() === '#' ? 'post' : item,
7
7
  prefix: prefix,
8
8
  resetPath: resetPath,
9
9
  }));