packages/cafeteria/docs/localize/resource_conv.js
function() {
    this.requireDefaultFile = true;
    this.folderName = 'conf';
    this.isDefaultLocale = function (localeKey) {
        if (localeKey == 'en-us' || localeKey == 'en-US') {
            return true;
        }
        return false;
    };
    this.getDefaultFilePath = function (folderPath) {
        return folderPath + '\\' + 'messages';
    };
    this.formatLine = function (key, value) {
        return key + '=' + value + '\n';
    };
    this.formatLastLine = function (key, value) {
        return this.formatLine(key, value);
    };
    this.formatComment = function (comment) {
        return comment + '\n';
    };
    this.formatEmptyLine = function () { return '\n'; };
    this.formatHeader = function (localeKey) { return ''; };
    this.formatFooter = function (localeKey) { return ''; };
    this.getFilePath = function (folderPath, localeKey) {
        return folderPath + '\\messages.' + localeKey;
    };
    this.normalizeLines = function (lines) {
        // noop
        return lines;
    };
}
function() {
    this.requireDefaultFile = true;
    this.folderName = 'conf';
    this.isDefaultLocale = function (localeKey) {
        if (localeKey == 'en-us' || localeKey == 'en-US') {
            return true;
        }
        return false;
    };
    this.getDefaultFilePath = function (folderPath) {
        return folderPath + '\\' + 'messages';
    };
    this.formatLine = function (key, value) {
        return key + '=' + value + '\n';
    };
    this.formatLastLine = function (key, value) {
        return this.formatLine(key, value);
    };
    this.formatComment = function (comment) {
        return comment + '\n';
    };
    this.formatEmptyLine = function () { return '\n'; };
    this.formatHeader = function (localeKey) { return ''; };
    this.formatFooter = function (localeKey) { return ''; };
    this.getFilePath = function (folderPath, localeKey) {
        return folderPath + '\\messages.' + localeKey;
    };
    this.normalizeLines = function (lines) {
        // noop
        return lines;
    };
}
function ( ) { this . requireDefaultFile = true ; this . folderName = 'conf' ; this . isDefaultLocale = function ( localeKey ) { if ( localeKey == 'en-us' || localeKey == 'en-US' ) { return true ; } return false ; } ; this . getDefaultFilePath = function ( folderPath ) { return folderPath + '\\' + 'messages' ; } ; this . formatLine = function ( key , value ) { return key + '=' + value + '\n' ; } ; this . formatLastLine = function ( key , value ) { return this . formatLine ( key , value ) ; } ; this . formatComment = function ( comment ) { return comment + '\n' ; } ; this . formatEmptyLine = function ( ) { return '\n' ; } ; this . formatHeader = function ( localeKey ) { return '' ; } ; this . formatFooter = function ( localeKey ) { return '' ; } ; this . getFilePath = function ( folderPath , localeKey ) { return folderPath + '\\messages.' + localeKey ; } ; this . normalizeLines = function ( lines ) { // noop return lines ; } ; }
Play framework language file formatter
Play framework language file formatter