We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c720648 commit 60d1ab0Copy full SHA for 60d1ab0
app/utils/nws.ts
@@ -78,7 +78,9 @@ export const parseTranslationFile = (file: TranslationFile): ProgramUIFile => {
78
const programUI: ProgramUIFile = {};
79
80
lines.forEach((line) => {
81
- const [key, value] = line.trim().split(KEY_VALUE_SEPARATOR);
+ const [key, ...rest] = line.trim().split(KEY_VALUE_SEPARATOR);
82
+ const value = rest.join(KEY_VALUE_SEPARATOR);
83
+
84
if (key) programUI[key] = value ?? ""; // Value can be empty in NWP translation file
85
});
86
0 commit comments