Skip to content

Commit

Permalink
chore(types): reenable i18n import of locale texts
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Jan 14, 2025
1 parent e794475 commit c4cc7f4
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type { Ref } from 'vue'
import type { CookieOptions } from 'nuxt/app'

// TODO: reenable import (https://github.com/nuxt/module-builder/issues/261)
// import en from './runtime/locale/en'
import en from './runtime/locale/en'

export type Locale =
| 'ar'
Expand Down Expand Up @@ -160,28 +159,7 @@ export const DEFAULTS: Required<ModuleOptions> = {
isIframeBlocked: false,
isModalForced: false,
locales: ['en'],

// TODO: use Nuxt module "i18n"
localeTexts: {
en: {
accept: 'Accept',
acceptAll: 'Accept all',
bannerDescription:
'We use our own cookies and third-party cookies so that we can display this website correctly and better understand how this website is used, with a view to improving the services we offer. A decision on cookie usage permissions can be changed anytime using the cookie button that will appear after a selection has been made on this banner.',
bannerTitle: 'Cookies',
close: 'Close',
cookiesFunctional: 'Functional cookies',
cookiesNecessary: 'Necessary cookies',
cookiesOptional: 'Optional cookies',
decline: 'Decline',
declineAll: 'Decline all',
here: 'here',
iframeBlocked: 'To see this, please enable functional cookies',
manageCookies: 'Learn more and customize',
save: 'Save',
settingsUnsaved: 'You have unsaved settings',
},
},
localeTexts: { en },
}

export interface State {
Expand Down

0 comments on commit c4cc7f4

Please sign in to comment.