[docs] Using the real resolver pattern in docs

If someone copies the docs into their app they'll find it simply doesn't
work because the locale pattern doesn't have the same logic. This makes
the doc examples work exactly as written.

[ci skip]