translatePath
Fetch info about a Drupal path.
const path = await drupal.translatePath(  path,  options?: {    withAuth,  }): Promise<DrupalTranslatedPath>path: string- Required
 - The resource path. Example: 
/blog/slug-for-article. 
options- Optional
 withAuth: boolean | DrupalClientAuth:- Set the authentication method to use. See the authentication docs.
 - Set to 
trueto use the authentication method configured on the client. 
Notes
- The Decoupled Router module is required.
 
Examples
- Get info about a 
/blog/slug-for-articlepath. 
const path = await drupal.translatePath("/blog/slug-for-article")