Germany's official name is Bundesrepublik Deutschland
Another country's official name in English is "Republic of Türkiye". Since 2022.
In both cases, that is what officials from the country expect the country to be called, when using the English language.
For instance here
(But yeah, personally I would capitalised both counties regardless of spelling/which name used.)