Skip to content

Commit

Permalink
chore(locales): add de
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Apr 23, 2024
1 parent 8763695 commit 48cc6fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ export function LocalizedContentNote({
locale: string;
}) {
const activeLocaleNoteContent = {
de: {
linkText: "Diese Seite wurde automatisch aus dem Englischen übersetzt.",
url: "/en-US/docs/MDN/Community/Contributing/Translated_content#active_locales",
},
"en-US": {
linkText:
"This page was translated from English by the community. Learn more and join the MDN Web Docs community.",
Expand Down
5 changes: 3 additions & 2 deletions libs/constants/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const VALID_LOCALES = new Map(
["en-US", "es", "fr", "ja", "ko", "pt-BR", "ru", "zh-CN", "zh-TW"].map(
["de", "en-US", "es", "fr", "ja", "ko", "pt-BR", "ru", "zh-CN", "zh-TW"].map(
(x) => [x.toLowerCase(), x]
)
);
Expand All @@ -10,7 +10,7 @@ export const RETIRED_LOCALES = new Map(
"bg",
"bn",
"ca",
"de",
//"de",
"el",
"fa",
"fi",
Expand Down Expand Up @@ -49,6 +49,7 @@ export const LOCALE_ALIASES = new Map([
// gets set in the client!
export const PREFERRED_LOCALE_COOKIE_NAME = "preferredlocale";
export const ACTIVE_LOCALES = new Set([
"de",
"en-us",
"es",
"fr",
Expand Down

0 comments on commit 48cc6fd

Please sign in to comment.