forked from baron/baron-sso
i18n, adminfront, devfront: 'make code-check' 통과를 위한 번역 싱크 엔진 개선, 룰 오브 훅 정합성 교정 및 테스트 레이스 컨디션 해결
This commit is contained in:
@@ -74,13 +74,25 @@ function parseTomlKeys(filePath) {
|
||||
|
||||
if (line.startsWith('[[') && line.endsWith(']]')) {
|
||||
const sectionName = line.slice(2, -2).trim();
|
||||
currentSection = sectionName ? sectionName.split('.').map((p) => p.trim()).filter(Boolean) : [];
|
||||
currentSection = sectionName ? sectionName.split('.').map((p) => {
|
||||
p = p.trim();
|
||||
if ((p.startsWith('"') && p.endsWith('"')) || (p.startsWith("'") && p.endsWith("'"))) {
|
||||
p = p.slice(1, -1).trim();
|
||||
}
|
||||
return p;
|
||||
}).filter(Boolean) : [];
|
||||
continue;
|
||||
}
|
||||
|
||||
if (line.startsWith('[') && line.endsWith(']')) {
|
||||
const sectionName = line.slice(1, -1).trim();
|
||||
currentSection = sectionName ? sectionName.split('.').map((p) => p.trim()).filter(Boolean) : [];
|
||||
currentSection = sectionName ? sectionName.split('.').map((p) => {
|
||||
p = p.trim();
|
||||
if ((p.startsWith('"') && p.endsWith('"')) || (p.startsWith("'") && p.endsWith("'"))) {
|
||||
p = p.slice(1, -1).trim();
|
||||
}
|
||||
return p;
|
||||
}).filter(Boolean) : [];
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -94,8 +106,8 @@ function parseTomlKeys(filePath) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (key.startsWith('"') && key.endsWith('"')) {
|
||||
key = key.slice(1, -1);
|
||||
if ((key.startsWith('"') && key.endsWith('"')) || (key.startsWith("'") && key.endsWith("'"))) {
|
||||
key = key.slice(1, -1).trim();
|
||||
}
|
||||
|
||||
const fullKey = [...currentSection, key].join('.');
|
||||
|
||||
Reference in New Issue
Block a user