Files
b2b/i18n/config_i18n.yaml
2026-03-11 09:33:36 +01:00

87 lines
1.7 KiB
YAML

# Database configuration (shared between Vue and Go extractors)
database:
type: postgres # "mysql" (default),sqlite or "postgres"
host: localhost
port: 5432
user: gitea
password: gitea
database: gitea
max_open_conns: 10
max_idle_conns: 5
# Vue.js extractor configuration
vue:
input: ~/coding/work/maal_aurrie/golden-panel/app
output: vue-keys.json
include:
- "**/*.vue"
- "**/*.js"
- "**/*.ts"
- "**/*.jsx"
- "**/*.tsx"
exclude:
- "**/node_modules/**"
- "**/dist/**"
- "**/.nuxt/**"
- "**/.output/**"
# Vue scope and components
scope_id: 3
language_ids:
- 1 # English
- 2 # Polish
- 3 # Czech
component_mapping:
general: 300
validate_error: 301
repo_chart: 302
verify_email : 303
save_to_file: true
save_to_db: false
remove_obsolete: false
# Go extractor configuration
go:
input: ~/coding/work/maal_aurrie
output: go-keys.json
include:
- "**/*.go"
- "**/*.tmpl"
- "**/*.html"
exclude:
- "**/vendor/**"
- "**/.git/**"
- "**/node_modules/**"
# Go scope and components
scope_id: 1
scope_name: "Backend"
language_ids:
- 1 # English
- 2 # Polish
- 3 # Czech
component_mapping:
be: 100 # backend general
error: 101
auth: 102
email: 103
default_component_id: 100 # Default component for keys without prefix
save_to_file: true
save_to_db: false
remove_obsolete: false
# Legacy configuration (for backward compatibility)
# Used when vue/go sections are not present
save:
scope_id: 1
scope_name: "Default"
language_ids:
- 1
component_mapping:
general: 1
component_names:
general: "General"
save_to_file: true
save_to_db: false
remove_obsolete: false