You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-04 11:51:45 +03:00
Revert "Merge pull request #5125 from matrix-org/travis/spec-i18n"
This reverts commit d3dba0ba3a.
This commit is contained in:
@@ -27,7 +27,6 @@ import PlatformPeg from "./PlatformPeg";
|
||||
// @ts-ignore - $webapp is a webpack resolve alias pointing to the output directory, see webpack config
|
||||
import webpackLangJsonUrl from "$webapp/i18n/languages.json";
|
||||
import { SettingLevel } from "./settings/SettingLevel";
|
||||
import { SASEmojiV1 } from "matrix-js-sdk/src/crypto/verification/SASEmojiV1";
|
||||
|
||||
const i18nFolder = 'i18n/';
|
||||
|
||||
@@ -40,14 +39,6 @@ counterpart.setSeparator('|');
|
||||
// Fall back to English
|
||||
counterpart.setFallbackLocale('en');
|
||||
|
||||
for (const emoji of SASEmojiV1.getAllEmoji()) {
|
||||
const translations = SASEmojiV1.getTranslationsFor(emoji);
|
||||
for (const lang of Object.keys(translations)) {
|
||||
const tempObject = {[SASEmojiV1.getNameFor(emoji)]: translations[lang]};
|
||||
counterpart.registerTranslations(lang, tempObject);
|
||||
}
|
||||
}
|
||||
|
||||
interface ITranslatableError extends Error {
|
||||
translatedMessage: string;
|
||||
}
|
||||
@@ -153,11 +144,6 @@ export function _t(text: string, variables?: IVariables, tags?: Tags): string |
|
||||
}
|
||||
}
|
||||
|
||||
export function _tSasV1(emoji: string): string {
|
||||
const name = SASEmojiV1.getNameFor(emoji);
|
||||
return _t(name);
|
||||
}
|
||||
|
||||
/*
|
||||
* Similar to _t(), except only does substitutions, and no translation
|
||||
* @param {string} text The text, e.g "click <a>here</a> now to %(foo)s".
|
||||
|
||||
Reference in New Issue
Block a user