Jon Erling Hustadnes
2025-02-27 9b47279fe62bfd8921bb4f98c3008feff2d9fe34
feat(i18n): added nb-NO (Norwegian) (#1795)

1 files added
1 files modified
86 ■■■■■ changed files
quartz/i18n/index.ts 2 ●●●●● patch | view | raw | blame | history
quartz/i18n/locales/nb-NO.ts 84 ●●●●● patch | view | raw | blame | history
quartz/i18n/index.ts
@@ -25,6 +25,7 @@
import th from "./locales/th-TH"
import lt from "./locales/lt-LT"
import fi from "./locales/fi-FI"
import no from "./locales/nb-NO"
export const TRANSLATIONS = {
  "en-US": enUs,
@@ -74,6 +75,7 @@
  "th-TH": th,
  "lt-LT": lt,
  "fi-FI": fi,
  "nb-NO": no,
} as const
export const defaultTranslation = "en-US"
quartz/i18n/locales/nb-NO.ts
New file
@@ -0,0 +1,84 @@
import { Translation } from "./definition"
export default {
  propertyDefaults: {
    title: "Uten navn",
    description: "Ingen beskrivelse angitt",
  },
  components: {
    callout: {
      note: "Notis",
      abstract: "Abstrakt",
      info: "Info",
      todo: "Husk på",
      tip: "Tips",
      success: "Suksess",
      question: "Spørsmål",
      warning: "Advarsel",
      failure: "Feil",
      danger: "Farlig",
      bug: "Bug",
      example: "Eksempel",
      quote: "Sitat",
    },
    backlinks: {
      title: "Tilbakekoblinger",
      noBacklinksFound: "Ingen tilbakekoblinger funnet",
    },
    themeToggle: {
      lightMode: "Lys modus",
      darkMode: "Mørk modus",
    },
    explorer: {
      title: "Utforsker",
    },
    footer: {
      createdWith: "Laget med",
    },
    graph: {
      title: "Graf-visning",
    },
    recentNotes: {
      title: "Nylige notater",
      seeRemainingMore: ({ remaining }) => `Se ${remaining} til →`,
    },
    transcludes: {
      transcludeOf: ({ targetSlug }) => `Transkludering of ${targetSlug}`,
      linkToOriginal: "Lenke til original",
    },
    search: {
      title: "Søk",
      searchBarPlaceholder: "Søk etter noe",
    },
    tableOfContents: {
      title: "Oversikt",
    },
    contentMeta: {
      readingTime: ({ minutes }) => `${minutes} min lesning`,
    },
  },
  pages: {
    rss: {
      recentNotes: "Nylige notat",
      lastFewNotes: ({ count }) => `Siste ${count} notat`,
    },
    error: {
      title: "Ikke funnet",
      notFound: "Enten er denne siden privat eller så finnes den ikke.",
      home: "Returner til hovedsiden",
    },
    folderContent: {
      folder: "Mappe",
      itemsUnderFolder: ({ count }) =>
        count === 1 ? "1 gjenstand i denne mappen." : `${count} gjenstander i denne mappen.`,
    },
    tagContent: {
      tag: "Tagg",
      tagIndex: "Tagg Indeks",
      itemsUnderTag: ({ count }) =>
        count === 1 ? "1 gjenstand med denne taggen." : `${count} gjenstander med denne taggen.`,
      showingFirst: ({ count }) => `Viser første ${count} tagger.`,
      totalTags: ({ count }) => `Fant totalt ${count} tagger.`,
    },
  },
} as const satisfies Translation