Revert "Merge pull request #5125 from matrix-org/travis/spec-i18n"
This reverts commit d3dba0ba3a
.
This commit is contained in:
parent
0a4d4e4df3
commit
534f0cc89e
49 changed files with 3524 additions and 20 deletions
|
@ -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".
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue