Skip to content

Commit

Permalink
Update Starlight example
Browse files Browse the repository at this point in the history
  • Loading branch information
yanthomasdev committed Nov 11, 2024
1 parent 45a07eb commit f81d0fb
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
20 changes: 18 additions & 2 deletions examples/starlight/lunaria.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ export default defineConfig({
name: 'yanthomasdev/lunaria',
rootDir: 'examples/starlight',
},
sourceLocale: 'en',
locales: ['pt'],
sourceLocale: {
label: 'English',
lang: 'en',
},
locales: [
{
label: 'Português',
lang: 'pt',
},
],
files: [
{
include: ['src/content/docs/**/*.(md|mdx)'],
Expand All @@ -25,6 +33,14 @@ export default defineConfig({
},
type: 'dictionary',
},
{
include: ['src/content/i18n/en.ts'],
pattern: {
source: 'src/content/i18n/@lang.ts',
locales: 'src/content/i18n/@lang.ts',
},
type: 'dictionary',
},
],
tracking: {
localizableProperty: 'i18nReady',
Expand Down
4 changes: 4 additions & 0 deletions examples/starlight/src/content/i18n/en.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
one: 'one',
second: 'second',
};
4 changes: 4 additions & 0 deletions examples/starlight/src/content/i18n/pt.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
one: 'um',
second: 'segundo',
};

0 comments on commit f81d0fb

Please sign in to comment.