|
1 | 1 | <script setup lang="ts"> |
2 | 2 | import { computed, PropType, WritableComputedRef } from "vue"; |
| 3 | +
|
| 4 | + import { useI18n } from "vue-i18n"; |
| 5 | + const { t } = useI18n(); |
| 6 | +
|
3 | 7 | import { trackEvent } from "@/lib/analytics/useAnalytics"; |
4 | 8 | // Types & Interfaces |
5 | 9 | import { PLAN_COGCPROGRAM_TYPE } from "@/stores/planningStore.types"; |
|
55 | 59 | }, |
56 | 60 | }); |
57 | 61 |
|
58 | | - const cogcOptions: PSelectOption[] = [ |
59 | | - { value: "---", label: "None" }, |
60 | | - { value: "AGRICULTURE", label: "Agriculture" }, |
61 | | - { value: "CHEMISTRY", label: "Chemistry" }, |
62 | | - { value: "CONSTRUCTION", label: "Construction" }, |
63 | | - { value: "ELECTRONICS", label: "Electronics" }, |
64 | | - { value: "FOOD_INDUSTRIES", label: "Food Industries" }, |
65 | | - { value: "FUEL_REFINING", label: "Fuel Refining" }, |
66 | | - { value: "MANUFACTURING", label: "Manufacturing" }, |
67 | | - { value: "METALLURGY", label: "Metallurgy" }, |
68 | | - { value: "RESOURCE_EXTRACTION", label: "Resource Extraction" }, |
69 | | - { value: "PIONEERS", label: "Pioneers" }, |
70 | | - { value: "SETTLERS", label: "Settlers" }, |
71 | | - { value: "TECHNICIANS", label: "Technicians" }, |
72 | | - { value: "ENGINEERS", label: "Engineers" }, |
73 | | - { value: "SCIENTISTS", label: "Scientists" }, |
74 | | - ]; |
| 62 | + const cogcOptions = computed<PSelectOption[]>(() => [ |
| 63 | + { value: "---", label: t("game.cogc_program.NONE") }, |
| 64 | + { |
| 65 | + value: "AGRICULTURE", |
| 66 | + label: t("game.cogc_program.ADVERTISING_AGRICULTURE"), |
| 67 | + }, |
| 68 | + { |
| 69 | + value: "CHEMISTRY", |
| 70 | + label: t("game.cogc_program.ADVERTISING_CHEMISTRY"), |
| 71 | + }, |
| 72 | + { |
| 73 | + value: "CONSTRUCTION", |
| 74 | + label: t("game.cogc_program.ADVERTISING_CONSTRUCTION"), |
| 75 | + }, |
| 76 | + { |
| 77 | + value: "ELECTRONICS", |
| 78 | + label: t("game.cogc_program.ADVERTISING_ELECTRONICS"), |
| 79 | + }, |
| 80 | + { |
| 81 | + value: "FOOD_INDUSTRIES", |
| 82 | + label: t("game.cogc_program.ADVERTISING_FOOD_INDUSTRIES"), |
| 83 | + }, |
| 84 | + { |
| 85 | + value: "FUEL_REFINING", |
| 86 | + label: t("game.cogc_program.ADVERTISING_FUEL_REFINING"), |
| 87 | + }, |
| 88 | + { |
| 89 | + value: "MANUFACTURING", |
| 90 | + label: t("game.cogc_program.ADVERTISING_MANUFACTURING"), |
| 91 | + }, |
| 92 | + { |
| 93 | + value: "METALLURGY", |
| 94 | + label: t("game.cogc_program.ADVERTISING_METALLURGY"), |
| 95 | + }, |
| 96 | + { |
| 97 | + value: "RESOURCE_EXTRACTION", |
| 98 | + label: t("game.cogc_program.ADVERTISING_RESOURCE_EXTRACTION"), |
| 99 | + }, |
| 100 | + { value: "PIONEERS", label: t("game.cogc_program.WORKFORCE_PIONEERS") }, |
| 101 | + { value: "SETTLERS", label: t("game.cogc_program.WORKFORCE_SETTLERS") }, |
| 102 | + { |
| 103 | + value: "TECHNICIANS", |
| 104 | + label: t("game.cogc_program.WORKFORCE_TECHNICIANS"), |
| 105 | + }, |
| 106 | + { |
| 107 | + value: "ENGINEERS", |
| 108 | + label: t("game.cogc_program.WORKFORCE_ENGINEERS"), |
| 109 | + }, |
| 110 | + { |
| 111 | + value: "SCIENTISTS", |
| 112 | + label: t("game.cogc_program.WORKFORCE_SCIENTISTS"), |
| 113 | + }, |
| 114 | + ]); |
75 | 115 | </script> |
76 | 116 |
|
77 | 117 | <template> |
78 | 118 | <PForm> |
79 | | - <PFormItem label="Corp. HQ"> |
| 119 | + <PFormItem :label="t('plan.components.bonuses.corp_hq')"> |
80 | 120 | <PTooltip> |
81 | 121 | <template #trigger> |
82 | 122 | <PCheckbox |
83 | 123 | v-model:checked="localCorpHQ" |
84 | 124 | :disabled="disabled" /> |
85 | 125 | </template> |
86 | | - The corporation you belong to has its headquarters on <br /> |
87 | | - this planet (not your individual company). |
| 126 | + {{ $t("plan.components.bonuses.corp_hq_tooltip") }} |
88 | 127 | </PTooltip> |
89 | 128 | </PFormItem> |
90 | 129 |
|
91 | | - <PFormItem label="COGC"> |
| 130 | + <PFormItem :label="t('plan.components.bonuses.cogc')"> |
92 | 131 | <PSelect |
93 | 132 | v-model:value="localCOGC" |
94 | 133 | class="w-full" |
|
0 commit comments