Skip to content

Commit ce0c363

Browse files
committed
chore: Move translation files into data directory
1 parent dc64bc0 commit ce0c363

17 files changed

Lines changed: 7 additions & 3 deletions

.github/scripts/validate-translations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { readFileSync } from 'fs';
33
import { resolve } from 'path';
44

55
const KEY_REGEX = /(['`])\$\.(\w+(?:\.\w+)+)(?=;;|\1|$)/g;
6-
const LOCALE_FILE = resolve('locales/en_us.json');
6+
const LOCALE_FILE = resolve('data/i18n/en_us.json');
77
const SRC_FILES = globSync(['src/**/*.ts'], { dot: false });
88

99
type LocaleObject = Record<string, any>;

.github/workflows/validate-translations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
paths:
66
- 'src/**/*.ts'
7-
- 'locales/en_us.json'
7+
- 'data/i18n/en_us.json'
88
- '.github/scripts/validate-translations.ts'
99
- '.github/workflows/validate-translations.yml'
1010
pull_request:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
data/*
2+
!data/i18n
23
!data/mail
34
node_modules
45
.venv
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)