superdesk/superdesk-client-core

View on GitHub
scripts/core/lang/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Noop for registering string for translation in js files.
 *
 * This is supposed to be used in angular config phase,
 * where we can't use the translate service.
 *
 * And while this doesn't do much, you still have to call translate in template.
 *
 * @param {string} input
 * @return {string} unmodified input
 */
window.gettext = function(input) {
    return input;
};

import map from './language-mapping-list';
export default map;