Green’s Dictionary of Slang

bat n.4

[Hind. bat, speech]

language; often in phrs. below.

[Ind]‘Aliph Cheem’ Lays of Ind (1905) 35: At first I liked his coming, for I liked the yarns he spun, /Of course in English; very little native ‘bât’ was done.
[UK]Kipling ‘The Three Musketeers’ in Plain Tales from the Hills 65: Hoppin’ in an’ out av the shops, thryin’ to injuce the naygurs to mallum his bat. [Ibid.] 66: T’ Sahib doesn’t speak t’ bat.
[UK]Regiment 22 Aug. 318/3: [T]he starter [...] has a trying time indeed, for no amount of ‘bat’ (talk or language), mild or severe, will make them [i.e. native servants] keep in line or ‘toe the mark’ .
[NZ]Bay of Plenty Times 21 Nov. 4/2: He was conversant with every native ‘bat’ or dialect.
[Aus](con. WWI) A.G. Pretty Gloss. of Sl. [...] in the A.I.F. 1921–1924 (rev. t/s) n.p.: bat. Language. Hindustani, used by Australians in Mesopotamia.
[UK](con. WWII) B. Aldiss Soldier Erect 43: You lot want to bolo the bhat a thora, you do!

In compounds

crab-bat (n.)

Hindi obscenities; thus sling the crab-bat v., to swear in Hindi.

[Aus]Chron. (Adelaide) 28 Apr. 53/1: He could speak English— and speak it well; there was no need for 'barrack lingo' when conversing with him, although several troopers in trying to soothe him, jokingly said, [...] ‘Why you speak it the crab-bat, Pathanee?’.
[UK](con. 1900s) F. Richards Old Soldier Sahib (1965) 139: The Prayer-wallah spent his time in learning the ‘crab-bat’ [...] which was all the swear-words in the Hindoostani language. [Ibid.] 142: The old shopkeeper could not believe that any man could have learned to sling the crab-bat to such order.

In phrases

sling the bat (v.) [sling v. (2a)]

(orig. milit.) to speak the local (foreign) language.

[UK]Kipling ‘Route Marchin’’ in Barrack-Room Ballads (1893) 207: And we thinks o’ friends in England, an’ we wonders what they’re at, / And ’ow they would admire for to hear us sling the bat.
St James’s Gaz. 5 Aug. 4/1: We hear that some of the men have learnt to sling the bat [...] and to be complimented on their proficiency in sulphurous language.
[UK]Bystander (London) 24 Aug. 38/2: One who has been there and who can sling the bat, as Tommy Atkins would say, with the best of us.
[UK]Exeter & Plymouth Gaz. 18 July 5/2: They're all right, I can tell you when you get know 'em [i.e. the French] and I can sling their bat like one o'clock now. It's quite easy once get the hang it, this bong arid pang parley voo.
[UK]Graphic (London) 22 Sept. 16/2: So we're off to Russia, eh. Hear you can sling the bat like old Rodjestvensky himself.
[Scot]Aberdeen Jrnl 15 June 4/3: Coo, sir, ’e cant ’arf sling the bat.