lang Attribute

Subject: Feature Request - Customizable HTML lang Attribute

Description: The current Base44 platform consistently sets the <html lang="en"> attribute for all applications, regardless of the application's actual content language. While the platform allows developers to create content in various languages, this hardcoded lang="en" attribute presents issues for internationalization (i18n), accessibility (a11y), and Search Engine Optimization (SEO).

For applications developed in languages other than English (e.g., German, French, etc.), this mismatch between the declared HTML language and the actual content can lead to:

  • Incorrect screen reader pronunciation.

  • Suboptimal search engine indexing for the target language.

  • Potential penalties for SEO if the lang attribute misrepresents the page content.

Proposed Solution: Please provide a mechanism to allow application developers to configure the HTML lang attribute. This could be implemented as:

  1. A setting in the application dashboard: A dedicated field where the developer can specify the primary language code (e.g., "de", "fr", "es") for their application.

  2. An environment variable: Allow developers to set an environment variable (e.g., BASE44_APP_LANG) that the platform uses to dynamically set the lang attribute.

Implementing this would greatly improve the internationalization capabilities, accessibility, and SEO performance of Base44 applications for non-English markets.

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board
💡

Feature Request

Date

About 1 month ago

Author

René Ziswiler

Subscribe to post

Get notified by email when there are changes.