@zodic/shared 0.0.392 → 0.0.393

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": "@zodic/shared",
3
- "version": "0.0.392",
3
+ "version": "0.0.393",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -663,44 +663,3 @@ export interface ProductLabels {
663
663
  };
664
664
  }
665
665
 
666
- export const productLabels: ProductLabels = {
667
- 'premium-astrology-reports': {
668
- 'pt-br': {
669
- name: 'Leitura Astrológica Premium',
670
- description: 'Desbloqueie relatórios de posições avançadas, casas e aspectos.',
671
- },
672
- 'en-us': {
673
- name: 'Premium Astrology Reports',
674
- description: 'Unlock advanced reports, houses, and aspects.',
675
- },
676
- },
677
- concepts: {
678
- 'pt-br': {
679
- name: 'Conceitos',
680
- description:
681
- 'Desbloqueie todos os Conceitos.',
682
- },
683
- 'en-us': {
684
- name: 'Concepts',
685
- description: 'Unlock all Concepts.',
686
- },
687
- },
688
- 'cosmic-mirror': {
689
- 'pt-br': {
690
- name: 'Espelho Cósmico',
691
- description: 'Contemple-se com os olhos do Universo.',
692
- },
693
- 'en-us': {
694
- name: 'Cosmic Mirror',
695
- description: 'See yourself as the Universe sees you.',
696
- },
697
- },
698
- };
699
-
700
- export const getProductLabel = (slug: string, lang: Languages) => {
701
- const labels = productLabels[slug] || {
702
- 'pt-br': { name: slug, description: '' },
703
- 'en-us': { name: slug, description: '' },
704
- };
705
- return labels[lang];
706
- };
@@ -0,0 +1,46 @@
1
+ import { Languages, ProductLabels } from "../types";
2
+
3
+ export const productLabels: ProductLabels = {
4
+ 'premium-astrology-reports': {
5
+ 'pt-br': {
6
+ name: 'Leitura Astrológica Premium',
7
+ description: 'Desbloqueie relatórios de posições avançadas, casas e aspectos.',
8
+ },
9
+ 'en-us': {
10
+ name: 'Premium Astrology Reports',
11
+ description: 'Unlock advanced reports, houses, and aspects.',
12
+ },
13
+ },
14
+ concepts: {
15
+ 'pt-br': {
16
+ name: 'Conceitos',
17
+ description:
18
+ 'Desbloqueie todos os Conceitos.',
19
+ },
20
+ 'en-us': {
21
+ name: 'Concepts',
22
+ description: 'Unlock all Concepts.',
23
+ },
24
+ },
25
+ 'cosmic-mirror': {
26
+ 'pt-br': {
27
+ name: 'Espelho Cósmico',
28
+ description: 'Contemple-se com os olhos do Universo.',
29
+ },
30
+ 'en-us': {
31
+ name: 'Cosmic Mirror',
32
+ description: 'See yourself as the Universe sees you.',
33
+ },
34
+ },
35
+ };
36
+
37
+ export const getProductLabel = (slug: string, lang: Languages) => {
38
+ console.log('getProductLabel -> Slug: ', slug)
39
+ console.log('getProductLabel -> Lang: ', lang)
40
+ const labels = productLabels[slug] || {
41
+ 'pt-br': { name: slug, description: '' },
42
+ 'en-us': { name: slug, description: '' },
43
+ };
44
+ console.log('getProductLabel -> Labels: ', labels)
45
+ return labels[lang];
46
+ };