Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/lunaria.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lunaria

on:
# Trigger the workflow every time a pull request is opened or synchronized at the target `main` branch
pull_request_target:
types: [opened, synchronize]

# Automatically cancel in-progress actions on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

# Allow this job to clone the repository and comment on the pull request
permissions:
contents: read
pull-requests: write

jobs:
lunaria-overview:
name: Generate Lunaria Overview
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
# Necessary for Lunaria to work properly
# Makes the action clone the entire git history
fetch-depth: 0

- name: Install Tools & Dependencies
uses: ./.github/actions/install

- name: Generate Lunaria Overview
uses: lunariajs/action@v1-prerelease
42 changes: 42 additions & 0 deletions lunaria.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { defineConfig } from '@lunariajs/core/config'

export default defineConfig({
repository: {
name: 'npmx-dev/npmx.dev',
},
sourceLocale: {
label: 'English',
lang: 'en',
},
locales: [
{
label: 'Français',
lang: 'fr',
},
{
label: 'Italiano',
lang: 'it',
},
{
label: '简体中文',
lang: 'zh-CN',
},
],
files: [
{
include: ['i18n/locales/en.json'],
pattern: 'i18n/locales/@lang.json',
type: 'dictionary',
},
],
tracking: {
ignoredKeywords: [
'lunaria-ignore',
'typo',
'en-only',
'broken link',
'i18nReady',
'i18nIgnore',
],
},
})
Loading