Skip to content
Prev Previous commit
Next Next commit
fix: Expose t in components
This is needed is we removed the global exposition.

Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Jun 4, 2025
commit 0fa274955f679d639e5b5062015962dd1d690ac9
3 changes: 3 additions & 0 deletions src/components/ActivityGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
</template>

<script>
import { t } from '@nextcloud/l10n'
import { mapActions, mapGetters, mapState } from 'vuex'
import CheckboxInput from './CheckboxInput.vue'
import { isActivityEnabled } from '../utils/settings.ts'
Expand Down Expand Up @@ -72,6 +73,8 @@ export default {
return t('activity', 'Send push notification')
}
},

t,
},
}
</script>
Expand Down
3 changes: 3 additions & 0 deletions src/components/EmailSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
</template>

<script>
import { t } from '@nextcloud/l10n'
import { mapActions, mapState } from 'vuex'
import EmailFrequency from '../models/EmailFrequency.js'

Expand All @@ -65,6 +66,8 @@ export default {

methods: {
...mapActions(['setSettingBatchtime']),

t,
},
}

Expand Down
3 changes: 3 additions & 0 deletions src/views/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
</template>

<script>
import { t } from '@nextcloud/l10n'
import { mapActions, mapState } from 'vuex'
import NcCheckboxRadioSwitch from '@nextcloud/vue/components/NcCheckboxRadioSwitch'
import NcSettingsSection from '@nextcloud/vue/components/NcSettingsSection'
Expand Down Expand Up @@ -49,6 +50,8 @@ export default {
'setEndpoint',
'toggleEmailEnabled',
]),

t,
},
}

Expand Down
3 changes: 3 additions & 0 deletions src/views/DailySummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
</template>

<script>
import { t } from '@nextcloud/l10n'
import { mapActions, mapState } from 'vuex'
import NcCheckboxRadioSwitch from '@nextcloud/vue/components/NcCheckboxRadioSwitch'
import NcSettingsSection from '@nextcloud/vue/components/NcSettingsSection'
Expand All @@ -39,6 +40,8 @@ export default {
'setEndpoint',
'toggleActivityDigestEnabled',
]),

t,
},
}
</script>
3 changes: 3 additions & 0 deletions src/views/DefaultActivitySettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
</template>

<script>
import { t } from '@nextcloud/l10n'
import { mapActions } from 'vuex'
import NcSettingsSection from '@nextcloud/vue/components/NcSettingsSection'
import ActivityGrid from '../components/ActivityGrid.vue'
Expand All @@ -29,6 +30,8 @@ export default {

methods: {
...mapActions(['setEndpoint']),

t,
},
}

Expand Down
3 changes: 3 additions & 0 deletions src/views/UserSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
</template>

<script>
import { t } from '@nextcloud/l10n'
import { mapActions, mapState } from 'vuex'
import NcSettingsSection from '@nextcloud/vue/components/NcSettingsSection'
import ActivityGrid from '../components/ActivityGrid.vue'
Expand Down Expand Up @@ -46,6 +47,8 @@ export default {

methods: {
...mapActions(['setEndpoint']),

t,
},
}

Expand Down