Hi Dominik,

Did you validate the file with json5 validator?
https://wiki.lyrasis.org/pages/viewpage.action?pageId=117735441#DSpace7TranslationInternationalization(i18n)Localization(l10n)-Validatingyourfilewiththejson5validator

Regards,
Mariusz

wtorek, 13 grudnia 2022 o 10:46:38 UTC+1 [email protected] napisał(a):

> Dear all,
> I'd like to add Polish language to DSpace, I 
> copied /dspace-angular-dspace-7.4/src/assets/i18n/en.json5 
> to /dspace-angular-dspace-7.4/src/assets/i18n/pl.json5 and translated all 
> but I don't know what I should next. I tried also edit 
> file /dspace-angular-dspace-7.4/src/environments/environment.production.ts 
> like this:
> import { BuildConfig } from '../config/build-config.interface';
>
> export const environment: Partial<BuildConfig> = {
>   production: true,
>
>   // Angular Universal settings
>   universal: {
>     preboot: true,
>     async: true,
>     time: false
>   },
>   // Default Language in which the UI will be rendered if the user's 
> browser language is not an active language
>   defaultLanguage: 'en',
>
>   // Languages. DSpace Angular holds a message catalog for each of the 
> following languages.
>   // When set to active, users will be able to switch to the use of this 
> language in the user interface.
>   languages: [{
>     code: 'pl',
>     label: 'Polski',
>     active: true,
>    }, {
>     code: 'en',
>     label: 'English',
>     active: true,
>   }, {
>     code: 'de',
>     label: 'Deutsch',
>     active: true,
>   }, {
>     code: 'cs',
>     label: 'Čeština',
>     active: true,
>   }, {
>     code: 'nl',
>     label: 'Nederlands',
>     active: true,
>   }, {
>     code: 'pt',
>     label: 'Português',
>     active: true,
>   }, {
>     code: 'fr',
>     label: 'Français',
>     active: true,
>   }, {
>     code: 'lv',
>     label: 'Latviešu',
>     active: true,
>   }, {
>     code: 'bn',
>     label: 'বাংলা',
>     active: true,
>   }, {
>     code: 'el',
>     label: 'Ελληνικά',
>     active: true,
>   }]
> };
> After edit this I go to /dspace-angular-dspace-7.4/src and run yarn 
> build:prod but it not help. So I edit one more 
> file /dspace-angular-dspace-7.4/config/config.prod.yml and I added line:
> languages:
>   - code: pl
>     label: Polski
>     active: true
>   -code: en
>     label: English
>     active: true
> but after tomcat and frontend restart when I choose 'Polski' I have only 
> internal server error.
>  Could someone tell me step by step what should I do to make it work? I 
> also want to make Polish language default language.
> Thanks,
> Dominik
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/41edce70-41f1-4482-b2b5-3956b3aa0f2an%40googlegroups.com.

Reply via email to