We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 63f9119 + 4017228 commit e5c7071Copy full SHA for e5c7071
scripts/gen-i18n.js
@@ -1,7 +1,7 @@
1
#!/usr/bin/env node
2
3
/*
4
-Copyright 2017 New Vector Ltd
+Copyright 2017-2021 The Matrix.org Foundation C.I.C.
5
6
Licensed under the Apache License, Version 2.0 (the "License");
7
you may not use this file except in compliance with the License.
@@ -117,8 +117,8 @@ function getTranslationsJs(file) {
117
];
118
119
if (file.endsWith(".js") || file.endsWith(".jsx")) {
120
- // all JS is assumed to be flow or react
121
- plugins.push("flow", "jsx");
+ // All JS is assumed to be React
+ plugins.push("jsx");
122
} else if (file.endsWith(".ts")) {
123
// TS can't use JSX unless it's a TSX file (otherwise angle casts fail)
124
plugins.push("typescript");
0 commit comments