Skip to content

Commit

Permalink
fix(@formatjs/cli): add string_format:icu config to smartling formatt…
Browse files Browse the repository at this point in the history
…er (#2528)

fixes #2526
  • Loading branch information
hjylewis committed Jan 22, 2021
1 parent 4ea92e0 commit eec1c6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cli/src/formatters/smartling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface SmartlingDirectives {
}
];
variants_enabled: boolean;
string_format: string;
[k: string]: any;
}

Expand All @@ -33,6 +34,7 @@ export const format: FormatFn<SmartlingJson> = msgs => {
},
],
variants_enabled: true,
string_format: 'icu',
},
} as any;
for (const [id, msg] of Object.entries(msgs)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ Object {
"stderr": "",
"stdout": "{
\\"smartling\\": {
\\"string_format\\": \\"icu\\",
\\"translate_paths\\": [
{
\\"instruction\\": \\"*/description\\",
Expand Down

0 comments on commit eec1c6f

Please sign in to comment.