_findMessageTemplate(messageTmpls) {

		for (let lang of this._langs) {
			const messageTmpl = messageTmpls[lang];
			if (messageTmpl)
				return messageTmpl;
		}

		for (let lang in messageTmpls)
			return messageTmpls[lang];
	}
/**
	 * Find message template according to the resolver's preferred languages
	 * list.
	 *
	 * @private
	 * @param {Object.<string,string>} messageTmpls Message templates by language
	 * codes.
	 * @returns {string} Matched message template, or first template in the
	 * provided templates if no language match.
	 */
Find message template according to the resolver's preferred languages
list.

@private
@param {Object.} messageTmpls Message templates by language
codes.
@returns {string} Matched message template, or first template in the
provided templates if no language match.
Find message template according to the resolver ' s preferred languages list . @private @param { Object . } messageTmpls Message templates by language codes . @returns { string } Matched message template or first template in the provided templates if no language match .
_findMessageTemplate(messageTmpls) {
		for (let lang of this._langs) {
			const messageTmpl = messageTmpls[lang];
			if (messageTmpl)
				return messageTmpl;
		}
		for (let lang in messageTmpls)
			return messageTmpls[lang];
	}
_findMessageTemplate ( messageTmpls ) { for ( let lang of this . _langs ) { const messageTmpl = messageTmpls [ lang ] ; if ( messageTmpl ) return messageTmpl ; } for ( let lang in messageTmpls ) return messageTmpls [ lang ] ; }
Find message template according to the resolver's preferred languages
 list.
Find message template according to the resolver ' s preferred languages list .