Answers.Body: <p>Thanks to <a href="https://craftcms.stackexchange.com/a/39918/12773">MisterMike's answer</a> I was able to get what I want. My asset location path is now set to <code>{{craft.entries.siteId(1).id(id).one().slug}}</code>. The <code>siteId</code> <code>1</code> is the ID of the site from which i want to use the slug.</p>
  <p>To use this location path inside of a matrix/neo field, you would have to add <code>owner</code> like this: <code>{{craft.entries.siteId(1).id(owner.id).one().slug}}</code>.</p>
  <p>With this location path, all assets from all languages are being saved into one single folder which uses the slug of the entry that is part of the primary site (<code>siteId(1)</code>).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-09-26T09:59:31.293Z
Answers.LastActivityDate: 2022-09-26T09:59:31.293Z
Answers.UserDisplayName: Sandro
Answers.Body: <p>This might not be a full blown solution but given the current entry, you can get the corresponding entry of another site by using</p>
  <pre><code>{% set otherLocaleEntry = craft.entries.siteId(lang.id).id(entry.id).one() %}
  </code></pre>
  <p>As you can see you only need the id of the desired language's site and the entry id. You then have the entry of the other language and you can get its slug.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-09-26T10:07:58.037Z
Answers.Text: Thanks Mike! Your answer pushed me into the right direction. I added a separate answer in which i edited your code accordingly and also prepared it to use inside a matrix field.
Answers.UserDisplayName: Sandro
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-09-22T15:30:01.440Z
Answers.LastActivityDate: 2022-09-22T15:30:01.440Z
Answers.UserDisplayName: MisterMike
Body: <p>I have a multilingual entry setup using different sites for each language. I want my assets sorted by slug, but since the slugs are different in each language, all assets are saved three times. My idea was to sort them not just by slug, but by the slug of their primary site sibling. So that all the assets from the same entry (no matter if they are uploaded on the DE, EN or FR site) are being saved in one folder using the slug of the EN site. Is this even possible?</p>
  
Tags: <assets><localization><language><assets-field>
Title: Get Entry Slug from specific Locale
ThreadText: # Get Entry Slug from specific Locale
  
  (Asked by: username_0 on 2022-09-22)
  
  I have a multilingual entry setup using different sites for each language. I want my assets sorted by slug, but since the slugs are different in each language, all assets are saved three times. My idea was to sort them not just by slug, but by the slug of their primary site sibling. So that all the assets from the same entry (no matter if they are uploaded on the DE, EN or FR site) are being saved in one folder using the slug of the EN site. Is this even possible?
  
  **Tags:** assets, localization, language, assets-field
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2022-09-26. Score: 2 | Accepted answer
  
  Thanks to [username_1's answer](https://craftcms.stackexchange.com/a/39918/12773) I was able to get what I want. My asset location path is now set to `{{craft.entries.siteId(1).id(id).one().slug}}`. The `siteId` `1` is the ID of the site from which i want to use the slug.
  
  To use this location path inside of a matrix/neo field, you would have to add `owner` like this: `{{craft.entries.siteId(1).id(owner.id).one().slug}}`.
  
  With this location path, all assets from all languages are being saved into one single folder which uses the slug of the entry that is part of the primary site (`siteId(1)`).
  
  
  ---
  
  ### Answer by username_1 on 2022-09-22. Score: 2
  
  This might not be a full blown solution but given the current entry, you can get the corresponding entry of another site by using
  
  ```
  {% set otherLocaleEntry = craft.entries.siteId(lang.id).id(entry.id).one() %}
  
  ```
  
  As you can see you only need the id of the desired language's site and the entry id. You then have the entry of the other language and you can get its slug.
  
  > **Comments:**
  > **username_0**: Thanks Mike! Your answer pushed me into the right direction. I added a separate answer in which i edited your code accordingly and also prepared it to use inside a matrix field.  
  
  ---
  
  