smartstore / Smartstore

A modular, scalable and ultra-fast open-source all-in-one eCommerce platform built on ASP.NET Core 7
http://www.smartstore.com/
GNU Affero General Public License v3.0
1.21k stars 449 forks source link

Media Manager: localize media file name (offer a different SEO file name for each language) #811

Open stefanmuellerdo opened 1 year ago

stefanmuellerdo commented 1 year ago

Feature Request: Media Manager - Localize Media File Name for SEO

Description:

In the current version of the Media Manager, all media files have a single, static filename regardless of the language or locale of the website. For SEO purposes and to enhance user experience, it would be beneficial to have the ability to localize media file names based on the selected language or locale.

06-09-_2023_11-51-24

Use Case:

Consider a multi-language e-commerce website that sells products globally. A product image might have a name like "red-shoe.jpg". However, for the German version of the site, a more SEO-friendly name might be "rote-schuhe.jpg". Similarly, for the French version, it might be "chaussure-rouge.jpg". By localizing media file names, we can improve SEO rankings and provide a more relevant user experience. 👍

Proposed Solution:

  1. UI Enhancement: In the Media Manager, when uploading or editing a media file, provide an option to set localized file names. This could be a table where the user can enter file names for each supported language.
  2. Storage: Store the localized file names in a mapping table in the database, linking each file to its localized names.
  3. Rendering: When serving media files, the system should detect the current language/locale and serve the appropriate localized file name.
  4. Fallback: If a localized name is not provided for a particular language, the system should fall back to the default file name.

Benefits:

Additional Considerations:

I believe this feature will greatly enhance the capabilities of the Media Manager and provide tangible benefits for multi-language websites. Looking forward to feedback and consideration!

stefanmuellerdo commented 1 year ago

see community forum thread here (german)

http://community.smartstore.com/index.php?/topic/50990-shop-%C3%BCbersetzung-medien-dateinamen-%C3%BCbersetzen/