function getLanguageFromPattern(sPatternName) {
		if (typeof sPatternName === "string") {
			const aParts = sPatternName.split(/[-_]/);
			return aParts[0];
		} else {
			return null;
		}
	}
Gets language code from pattern name (hbp file name).

@param {string} sPatternName The hpb file name
@return {string} Language code