Skip to content

Commit 1fc26a5

Browse files
committed
i18n: Move message files out of src/, into static/.
These are a common source of noise when grepping the codebase, especially for terms like "Stream" or "Message" -- anything that matches even one message string piles up a ton of hits as it appears in each of these files. The worst part is that there hasn't been an easy way to filter this noise out when doing a grep, because these files appear right in the middle of our main source code. Fix that by moving them into static/, so that `git grep Stream src/` etc. find only the matches that are actually in our source code.
1 parent 576c19f commit 1fc26a5

36 files changed

+26
-26
lines changed

.tx/config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
host = https://www.transifex.com
33

44
[zulip.mobile]
5-
source_file = src/i18n/translations/messages_en.json
5+
source_file = static/translations/messages_en.json
66
source_lang = en
77
type = KEYVALUEJSON
8-
file_filter = src/i18n/translations/messages_<lang>.json
8+
file_filter = static/translations/messages_<lang>.json

src/i18n/messages.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
/* eslint-disable spellcheck/spell-checker */
22
/* @flow */
33

4-
import ar from './translations/messages_ar.json';
5-
import bg from './translations/messages_bg.json';
6-
import ca from './translations/messages_ca.json';
7-
import cs from './translations/messages_cs.json';
8-
import de from './translations/messages_de.json';
9-
import en from './translations/messages_en.json';
10-
import es from './translations/messages_es.json';
11-
import fr from './translations/messages_fr.json';
12-
import hi from './translations/messages_hi.json';
13-
import hu from './translations/messages_hu.json';
14-
import id from './translations/messages_id_ID.json';
15-
import it from './translations/messages_it.json';
16-
import ja from './translations/messages_ja.json';
17-
import ko from './translations/messages_ko.json';
18-
import ml from './translations/messages_ml.json';
19-
import nl from './translations/messages_nl.json';
20-
import pl from './translations/messages_pl.json';
21-
import pt from './translations/messages_pt.json';
22-
import ru from './translations/messages_ru.json';
23-
import sr from './translations/messages_sr.json';
24-
import sv from './translations/messages_sv.json';
25-
import ta from './translations/messages_ta.json';
26-
import tr from './translations/messages_tr.json';
27-
import zh from './translations/messages_zh-Hans.json';
4+
import ar from '../../static/translations/messages_ar.json';
5+
import bg from '../../static/translations/messages_bg.json';
6+
import ca from '../../static/translations/messages_ca.json';
7+
import cs from '../../static/translations/messages_cs.json';
8+
import de from '../../static/translations/messages_de.json';
9+
import en from '../../static/translations/messages_en.json';
10+
import es from '../../static/translations/messages_es.json';
11+
import fr from '../../static/translations/messages_fr.json';
12+
import hi from '../../static/translations/messages_hi.json';
13+
import hu from '../../static/translations/messages_hu.json';
14+
import id from '../../static/translations/messages_id_ID.json';
15+
import it from '../../static/translations/messages_it.json';
16+
import ja from '../../static/translations/messages_ja.json';
17+
import ko from '../../static/translations/messages_ko.json';
18+
import ml from '../../static/translations/messages_ml.json';
19+
import nl from '../../static/translations/messages_nl.json';
20+
import pl from '../../static/translations/messages_pl.json';
21+
import pt from '../../static/translations/messages_pt.json';
22+
import ru from '../../static/translations/messages_ru.json';
23+
import sr from '../../static/translations/messages_sr.json';
24+
import sv from '../../static/translations/messages_sv.json';
25+
import ta from '../../static/translations/messages_ta.json';
26+
import tr from '../../static/translations/messages_tr.json';
27+
import zh from '../../static/translations/messages_zh-Hans.json';
2828

2929
export default {
3030
ar,
File renamed without changes.

0 commit comments

Comments
 (0)