Skip to content

Commit

Permalink
ref(catalog): split to separate files, add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timofei-iatsenko committed Feb 27, 2023
1 parent 1f5bf69 commit 50ac2a7
Show file tree
Hide file tree
Showing 30 changed files with 1,202 additions and 1,048 deletions.
6 changes: 0 additions & 6 deletions packages/cli/src/api/__snapshots__/catalog.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -889,12 +889,6 @@ Object {
}
`;

exports[`getCatalogs should warn about missing {name} pattern in catalog path 1`] = `Catalog with path "./locales/{locale}" doesn't have a {name} pattern in it, but one of source directories uses it: "{name}". Either add {name} pattern to "./locales/{locale}" or remove it from all source directories.`;

exports[`getCatalogs should warn if catalogPath is a directory 1`] = `Remove trailing slash from "./locales/{locale}/". Catalog path isn't a directory, but translation file without extension. For example, catalog path "./locales/{locale}" results in translation file "./locales/en.po".`;

exports[`getCatalogs should warn if catalogPath is a directory 2`] = `Remove trailing slash from "./locales/{locale}/". Catalog path isn't a directory, but translation file without extension. For example, catalog path "./locales/{locale}" results in translation file "./locales/cs.json".`;

exports[`order should order messages alphabetically 1`] = `
Object {
LabelA: Object {
Expand Down
Loading

0 comments on commit 50ac2a7

Please sign in to comment.