Localized military recruiting--when did it end?

There are many cases of military units who recruited from a specific area, such as the volunteer companies of the American Civil War or the “Pals Battalions” of WWI Britain. When did armies stop recruiting their troops from specific cities or regions, and why? Are there any military forces today that prefer to find their soldiers from a specific locality?

The British Army still has Gurkha units that recruit from certain regions of Nepal. Does that count under your definition?

Yes. Basically, I’m looking for recruitment that’s limited to a specific area of a country, no matter how big that area is.

British Army still recruits regiments with a local identity. As does the successors of the erstwhile British Indian Army, the Indian and Pakistan Army. In all three cases, while the regiments nominally carry the name of a region and do recruit heavily from said region, they do have troops from outside.

The Irish Guards recruit mainly in Ireland and the Irish areas of English cities. They also have recruits from Eire although they are not allowed to actively recruit there.

The answer to the OP’s question is that, basically, it hasn’t.

US National Guard units are localized . PA National Guard, for example, is (mostly) people from PA. The organization, itself, is still part of the national military. In practice, people in the individual units tend to be from places really close to where the unit has its armory, making it even more localized. For the most part, nobody wants to have hours of driving to get to weekend drill, you see, so they join nearby units. Reserve units become localized for much the same reason.

Yes, this is a continuing feature of the British Army. Another “local identity” regiment is the Black Watch (Royal Highland Regiment), nicknamed the “Ladies from Hell” for their former practice of wearing kilts into battle. Afaik, one does not need to be Scottish to serve in the Black Watch, though I’m sure it helps socially.

Are the Gurkha units officially open to anyone eligible to serve in the British Army, or are they restricted? Like, if some teen boy from the Hebrides tried to enlist in the Gurkhas, would he be allowed to do so or would he be told to go apply for the Black Watch, strolling through the green fields on a summer’s day, watching all the country girls working at the hay?

They are recruited only from Nepal. The officers are from the UK.

This seems to indicate that to enlist in a Gurkha unit, you have to be from Nepal:

My platoon, in basic training, was all from Nebraska in 1981.