There is the following analogy:
$$\begin{array}{cc} \text{frames} & - & \text{commutative rings} \\ | && | \\\text{locales} & - & \text{affines schemes}\end{array}$$
Here, $\bigvee$ is analagous to $\sum$ and $\bigwedge$ is analogous to $\prod$. The category of locales is defined as the dual of the category of frames. We may also define the category of affines schemes as the dual of the category of commutative rings, this is done for example by Toen and Vaquié in relative algebraic geometry. But usually we define affine schemes geometrically as locally ringed spaces. Also, affine schemes are the local building blocks for schemes.
This leads to the following two questions:
- Is there a geometric definition of locales?
- Are locales the local building blocks for some geometric objects?
So, the second question is about completing the following analogy:
$$\begin{array}{cc} \text{frames} & - & \text{commutative rings} \\ | && | \\\text{locales} & - & \text{affines schemes} \\ | && | \\ \text{?} & - & \text{schemes}\end{array}$$
After skimming through the nlab article on locales, I would guess that locales may be defined "geometrically" as localic toposes and that perhaps the glued geometric objects are toposes, too (which ones?). This is motivated by the fact that we have a fully faithful left adjoint functor $$\mathrm{Sh} : \mathsf{Loc} \to \mathsf{Topos}$$ from locales to toposes given by taking sheaves, and that toposes are sometimes regarded as geometric objects. (It is noted at the nlab that locales coincide with Grothendieck $(0,1)$-toposes. But this is just a reformulation of the definitions.)
But this doesn't really look similar to the construction of the spectrum of a commutative ring. It rather looks like the fully faithful embedding from (affine) schemes into the category of cocomplete symmetric monoidal categories, given by taking quasi-coherent sheaves. And this is not how we usually define affine schemes geometrically.
Perhaps there is an embedding from the category of locales into the category of locally ringed spaces? Of course, we cannot take the associated topological space of points, since that may turn out to be empty. Perhaps there is a different construction, though.