Babel:支援哪些語言(例如葡萄牙語)

Babel:支援哪些語言(例如葡萄牙語)

我閱讀了 Babel 文件並認識到它支援多個版本的葡萄牙語。根據文檔,我可以另外指定例如ToC.文檔提到\captions<lang>.但portuguese我嘗試例如。europeanportuguese

\documentclass[a4paper,11pt,europeanportuguese]{article}
\usepackage[shorthands=off]{babel}
\usepackage{kantlipsum}
\addto\captionseuropeanportuguese{%
    \renewcommand{\contentsname}{Conteúdo}
}
\begin{document}
    \tableofcontents
    \kant[1]
    \section{Second chapter}
    \kant[2]
\end{document}

但這不會改變目錄的標題。

當我嘗試portuguese-portugal時,情況會更糟!\captionsportuguese-portugal- 不會被識別,lualatex甚至不會編譯。

並嘗試簡單地portuguese我得到

Package babel Error: You haven't defined the language 'nil' yet. \babel@toc {nil}{}

那麼,我如何正確定義葡萄牙語 - 歐洲和/或巴西風格?

備註:將 lang 的名稱替換為 例如naustrian,該範例將按預期工作。

相關內容