|
176 | 176 | </div> |
177 | 177 | <div v-if="showYearModal" class="year-editor"> |
178 | 178 | <div class="ye-header"> |
179 | | - <h4>Edit {{ selectedYear }} (program spending)</h4> |
180 | | - <button class="btn" @click="closeYearEditor">Close</button> |
| 179 | + <h4>{{ i18nText('projectionsPanel.editYearTitle', 'Edit {year} (program spending)')?.replace('{year}', selectedYear) }}</h4> |
| 180 | + <button class="btn" @click="closeYearEditor">{{ i18nText('common.close', 'Close') }}</button> |
181 | 181 | </div> |
182 | 182 | <div class="ye-grid"> |
183 | 183 | <div class="row"> |
184 | | - <label :title="t('projectionsPanel.spendingBoostTooltip', 'One-time adjustment to program spending for this year')">{{ t('projectionsPanel.spendingBoost', 'Spending boost (%)') }}</label> |
| 184 | + <label :title="i18nText('projectionsPanel.spendingBoostTooltip', 'One-time adjustment to program spending for this year')">{{ i18nText('projectionsPanel.spendingBoost', 'Program spending boost (%)') }}</label> |
185 | 185 | <input type="number" step="0.5" :min="-15" :max="15" v-model.number="yearLevel" /> |
186 | 186 | </div> |
187 | 187 | <div class="row"> |
188 | | - <label :title="t('projectionsPanel.growthRateBoostTooltip', 'Adjusts growth rate for this year and forward. +0.5 means spending grows 0.5 percentage points faster.')">{{ t('projectionsPanel.growthRateBoost', 'Growth rate boost (pp)') }}</label> |
| 188 | + <label :title="i18nText('projectionsPanel.growthRateBoostTooltip', 'Adjusts growth rate for this year and forward. +0.5 means spending grows 0.5 percentage points faster.')">{{ i18nText('projectionsPanel.growthRateBoost', 'Growth rate boost (pp)') }}</label> |
189 | 189 | <input type="number" step="0.1" v-model.number="yearGrowth" /> |
190 | 190 | </div> |
191 | 191 | <div class="row"> |
192 | | - <label>Apply forward</label> |
| 192 | + <label>{{ i18nText('projectionsPanel.applyForward', 'Apply forward') }}</label> |
193 | 193 | <input type="checkbox" v-model="applyForward" /> |
194 | 194 | </div> |
195 | 195 | </div> |
196 | 196 | <div class="ye-actions"> |
197 | | - <button class="btn" @click="resetYearOverrides">Reset year</button> |
198 | | - <button class="btn primary" @click="applyYearOverrides">Apply</button> |
| 197 | + <button class="btn" @click="resetYearOverrides">{{ i18nText('projectionsPanel.resetYear', 'Reset year') }}</button> |
| 198 | + <button class="btn primary" @click="applyYearOverrides">{{ i18nText('common.apply', 'Apply') }}</button> |
199 | 199 | </div> |
200 | 200 | </div> |
201 | 201 | </div> |
|
0 commit comments